Enabling Gazelle in Redis
- Start the Redis server.
1LD_PRELOAD=/usr/lib64/liblstack.so GAZELLE_BIND_PROCNAME=redis-server /usr/local/redis-6.2.9/bin/redis-server /usr/local/redis-6.2.9/redis.conf-master --bind 192.168.200.8 &
Modify the following parameters as required:
- /usr/local/redis-6.2.9/bin/redis-server: Redis installation path
- /usr/local/redis-6.2.9/redis.conf-master: path to the Redis configuration file
- 192.168.200.8: allocated service IP address
- Verify that Gazelle has been successfully configured. If the service network is connected, Gazelle is enabled successfully. Run the following command on the client server to log in to the Redis client and check whether the service network is normal:
1redis-cli -h 192.168.200.8 -p 6379
Modify the following parameters as required:
- 192.168.200.8: allocated service IP address
- 6379: allocated service port number
- Perform a Redis-benchmark test to obtain the performance improvement data after the Gazelle network optimization feature is used. For details about the test, see Redis-benchmark Test Guide
The Gazelle network optimization feature improves the comprehensive Redis-benchmark performance by 50%. Figure 1 shows the effect before and after the optimization.
Parent topic: Starting Applications Using Gazelle
