Skip to content

Environment Variables

BJ Neilsen edited this page Sep 5, 2013 · 6 revisions

We utilize Environment Variables quite extensively to influence or define the behavior of certain aspects of the library. Here is a list of those environment variables and their uses. With a few exceptions (see below), all of the variables are only checked for presence, their value is meaningless and we often simply set them to 1.


Compile-time Variables

Add description.

PB_NO_NETWORKING

PB_NO_TAG_WARNINGS


Runtime Variables

The following variables affect how the library operates within a running process or application.

PB_CLIENT_RETRIES=(NUMBER > 0)

This option only applies to the ZMQ client connector. Specify the number of times a client RPC call should attempt to successfully send a request to a service within the allotted timeout. If you specify a timeout of 30 seconds and set a PB_CLIENT_RETRIES value of 3 (the default), we would attempt three 10 second requests to try and get a good connection. See the ZMQ Guide on the Lazy Pirate Pattern for more information.

PB_CLIENT_TYPE=(evented | socket | zmq)

Set the connector transport type to be used for all client requests. Current options are evented, socket, and zmq (case does not matter). Note that whatever value you set here, you should mirror with PB_SERVER_TYPE on the server side, otherwise your requests will not work correctly.

PB_IGNORE_DEPRECATIONS

Add description.

PB_RPC_PING_PORT

Add description.

PB_SERVER_TYPE

Add description.

PB_WORKERS_ONLY

Add description.

Clone this wiki locally