This topic provides information about fine-tuning your VMware GemFire client/server configuration.
You can fine-tune your client/server system with server load-balancing. For example, you can configure how often the servers check their load with the cache server
load-poll-interval property, or configure your own server load metrics by implementing the
When the client pool requests connection information from the server locator, the locator returns the least-loaded server for the connection type. The pool uses this “best server” response to open new connections and to condition (rebalance) its existing pool connections.
load-poll-interval. You might want to reduce the interval if you find your server loads fluctuating too much during normal operation. The lower you set this parameter, however, the more overhead your load balancing will use.
GemFire provides a default utility that probes the server and its resource usage to give load information to the locators. The default probe returns the following load metrics:
max-connectionssetting. This means that a server with a lower
max-connectionssetting receives fewer connections than a server with a higher setting. The load is a number between 0 and 1, where 0 means there are no connections, and 1 means the server is at
max-connections. The load estimate for each additional pool connection is 1/
To use your own server load metrics instead of the default, implement the
ServerLoadProbeAdapter and related interfaces and classes in the
org.apache.geode.cache.server package. The load for each server is weighted relative to the loads reported by other servers in the system.