Using Wide Area Network Optimization for Event Broker Services in Kubernetes Clusters

Wide area network (WAN) optimization, sometimes referred to as WAN tuning, is the optimization of network performance to increase data transfer speeds in a WAN. You can use WAN optimization to increase the messaging performance between Kubernetes-based event broker services that are dispersed over different geographic locations. The distance between the event broker services could be as close as two different data centers in the same city, or as distant as data centers on different continents.

To perform WAN optimization for your Kubernetes-based event broker services, Solace deploys a DaemonSet alongside the Mission Control Agent. The DaemonSet configures the TCP window size for each node's kernel to be larger than normal; it does this by increasing the maximum TCP connection memory size in the kernel settings. A larger TCP window size allows the event broker services to send larger amounts of data without waiting for acknowledgments from the receiving event broker service.

To perform the required configurations to the TCP window size, the DaemonSet requires specific permissions and configuration requirements. You need to be aware of these permissions and configuration requirements, as they may affect your security policies. These mandatory permissions and configuration requirements include:

  • running in privileged mode—The DaemonSet requires privileged mode to change kernel configurations.

  • setting the hostNetwork setting to true—Setting the hostnetwork to true, allows the DaemonSet pod to see TCP settings that are not namespaced.

  • setting the scheduling in the event broker service nodes only—This ensures that only the primary and backup nodes have their TCP connection memory settings increased.

  • configuring the nodes before the event broker service establishes connections—The memory size of the TCP connection is determined during creation and can't be changed later.

To start using WAN optimization for your PubSub+ Cloud deployment, contact Solace.