$Options |
array |
An array of options with container constants as keys.
- CONTAINER_LOCATION: required. the location of the container. SERVER:IP, Filepath, etc.
- CONTAINER_PERSISTENT: optional (default true). whether to use connect() or pconnect() where applicable.
- CONTAINER_WEIGHT: optional (default 1). number of buckets to create for this server which in turn control its probability of it being selected.
- CONTAINER_RETRYINT: optional (default 15s). controls how often a failed container will be retried, the default value is 15 seconds.
- CONTAINER_TIMEOUT: optional (default 1s). amount of time to wait for connection to container before timing out.
- CONTAINER_CALLBACK: optional (default null). callback to execute if container fails to open/connect. |