You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/02/16 04:30:59 UTC

[GitHub] [skywalking] Lovnx opened a new issue #4367: How to configure Collector domain name?

Lovnx opened a new issue #4367: How to configure Collector domain name?
URL: https://github.com/apache/skywalking/issues/4367
 
 
   I seted up a nginx over Collector cluster, domain name is  'collector-grpc.xxx.com'
   tnen I set the agent collector.backend_service=collector-grpc.xxx.com, but it not work.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] Lovnx closed issue #4367: How to configure Collector domain name?

Posted by GitBox <gi...@apache.org>.
Lovnx closed issue #4367: How to configure Collector domain name?
URL: https://github.com/apache/skywalking/issues/4367
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] Lovnx commented on issue #4367: How to configure Collector domain name?

Posted by GitBox <gi...@apache.org>.
Lovnx commented on issue #4367: How to configure Collector domain name?
URL: https://github.com/apache/skywalking/issues/4367#issuecomment-586671489
 
 
   I solved this, because:
   `managedChannel = GRPCChannel.newBuilder(ipAndPort[0], Integer.parseInt(ipAndPort[1]))`
   so the configuration should be `collector.backend_service=collector-grpc.xxx.com:80`
   
   Attaching my nginx1.16 configuration:(nginx version >= 1.13, nginx 1.13 support GRPC protocol)
   
   ```
   events {
       worker_connections 10240;
       use epoll;
       multi_accept on;
   }
   
   http {
       log_format main '$remote_addr - $remote_user [$time_local] $request '
                       '"$status" $body_bytes_sent "$http_referer" '
                       '"$http_user_agent" "$http_x_forwarded_for"';
   
    upstream collector{
      server 172.xx.xx.xxx:11800;
      server 172.xx.xx.xxx:11800;
    }
   
    server {
       listen 80 http2;
   
       server_name    collector-grpc.xxx.com;
   
       access_log    /data/web_log/nginx/grpc-access.log main;
       error_log    /data/web_log/nginx/grpc-error.log error;
   
   
       location = /error502grpc {
           internal;
           default_type application/grpc;
           add_header grpc-status 14;
           add_header grpc-message "unavailable";
           return 204;
       }
   
      location / {
               grpc_pass grpc://collector;
   
               error_page 502 = /error502grpc;
       }
   
    }
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services