mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-23 04:28:01 +00:00
Set default maximum Redis connections to 8.
This commit is contained in:
parent
1542ce9af8
commit
47fc9792b0
@ -388,7 +388,7 @@ public final class RedisBungee extends Plugin {
|
|||||||
@Override
|
@Override
|
||||||
public JedisPool call() throws Exception {
|
public JedisPool call() throws Exception {
|
||||||
JedisPoolConfig config = new JedisPoolConfig();
|
JedisPoolConfig config = new JedisPoolConfig();
|
||||||
config.setMaxTotal(configuration.getInt("max-redis-connections", -1));
|
config.setMaxTotal(configuration.getInt("max-redis-connections", 8));
|
||||||
config.setJmxEnabled(false);
|
config.setJmxEnabled(false);
|
||||||
return new JedisPool(config, redisServer, redisPort, 0, finalRedisPassword);
|
return new JedisPool(config, redisServer, redisPort, 0, finalRedisPassword);
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,9 @@ redis-port: 6379
|
|||||||
# OPTIONAL: If your Redis server uses AUTH, set the password required.
|
# OPTIONAL: If your Redis server uses AUTH, set the password required.
|
||||||
redis-password: ""
|
redis-password: ""
|
||||||
# Maximum connections that will be maintained to the Redis server.
|
# Maximum connections that will be maintained to the Redis server.
|
||||||
# The default is an unlimited number of connections.
|
# The default is 8. This setting should be left as-is unless you have some wildly
|
||||||
# You may need to lower this value in some setups.
|
# inefficient plugins or a lot of players.
|
||||||
max-redis-connections: -1
|
max-redis-connections: 8
|
||||||
|
|
||||||
# An identifier for this BungeeCord instance.
|
# An identifier for this BungeeCord instance.
|
||||||
server-id: iluvbungee
|
server-id: iluvbungee
|
||||||
|
Loading…
Reference in New Issue
Block a user