3.3 KiB
		
	
	
	
	
	
			
		
		
	
	grpc-js environment variables
@grpc/grpc-js exposes some configuration as environment variables that
can be set.
For the legacy grpc library, the environment variables are documented
in the main gRPC repository
- 
grpc_proxy, https_proxy, http_proxy The URI of the proxy to use for HTTP CONNECT support. These variables are checked in order, and the first one that has a value is used.
 - 
no_grpc_proxy, no_proxy A comma separated list of hostnames, IP addresses, or CIDR blocks to connect to without using a proxy even if a proxy is set, for example: no_proxy=example.com,192.168.0.1,192.168.0.0/16. These variables are checked in order, and the first one that has a value is used.
 - 
GRPC_SSL_CIPHER_SUITES A colon separated list of cipher suites to use with OpenSSL Defaults to the defaults for Node.js
 - 
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH PEM file to load SSL roots from
 - 
GRPC_NODE_TRACE, GRPC_TRACE A comma separated list of tracers that provide additional insight into how grpc-js is processing requests via debug logs. Available tracers include:
call_stream- Traces client request internalschannel- Traces channel eventsconnectivity_state- Traces channel connectivity state changesdns_resolver- Traces DNS resolutionip_resolver- Traces IPv4/v6 resolutionpick_first- Traces the pick first load balancing policyproxy- Traces proxy operationsresolving_load_balancer- Traces the resolving load balancerround_robin- Traces the round robin load balancing policyserver- Traces high-level server eventsserver_call- Traces server handling of individual requestssubchannel- Traces subchannel connectivity state and errorssubchannel_refcount- Traces subchannel refcount changes. Includes per-call logs.subchannel_flowctrl- Traces HTTP/2 flow control. Includes per-call logs.subchannel_internals- Traces HTTP/2 session state. Includes per-call logs.channel_stacktrace- Traces channel construction events with stack traces.keepalive- Traces gRPC keepalive pingsoutlier_detection- Traces outlier detection events
The following tracers are added by the
@grpc/grpc-js-xdslibrary:cds_balancer- Traces the CDS load balancing policyeds_balancer- Traces the EDS load balancing policypriority- Traces the priority load balancing policyweighted_target- Traces the weighted target load balancing policyxds_client- Traces the xDS Clientxds_cluster_manager- Traces the xDS cluster manager load balancing policyxds_resolver- Traces the xDS name resolver
'all' can additionally be used to turn all traces on. Individual traces can be disabled by prefixing them with '-'.
 - 
GRPC_NODE_VERBOSITY, GRPC_VERBOSITY Default gRPC logging verbosity - one of:
- DEBUG - log all gRPC messages
 - INFO - log INFO and ERROR message
 - ERROR - log only errors (default)
 - NONE - won't log any
 
 - 
GRPC_NODE_USE_ALTERNATIVE_RESOLVER Allows changing dns resolve behavior and parse DNS server authority as described in https://github.com/grpc/grpc/blob/master/doc/naming.md
- true - use alternative resolver
 - false - use default resolver (default)