Performance Tuning
Optimise your Bovine Pages Server performance
Cache Settings
cacheTTL: 300 # Default: 5 minutes
Adjust based on your update frequency:
- Development: 60 seconds
- Production: 300-600 seconds
- High traffic: 600-1800 seconds
Redis Connection Pooling (v0.1.5+)
For high-traffic deployments, tune the Redis connection pool settings:
redisPoolSize: 10 # Idle connections per cache instance (default: 10)
redisMaxConnections: 20 # Max connections per cache instance (default: 20)
redisConnWaitTimeout: 5 # Seconds to wait when pool exhausted (default: 5)
Tuning Guidelines:
| Traffic Level | Pool Size | Max Connections | Wait Timeout |
|---|---|---|---|
| Low | 5 | 10 | 3 |
| Medium | 10 | 20 | 5 |
| High | 20 | 50 | 10 |
| Very High | 30 | 100 | 15 |
Important Notes:
- The plugin creates 3 cache instances, so total max = 3 ×
redisMaxConnections - Ensure your Redis
maxclientssetting can accommodate this - Higher
redisConnWaitTimeoutmeans requests wait longer before falling back to in-memory cache - Monitor Redis connections with:
docker exec redis redis-cli CLIENT LIST | wc -l