mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-04 20:38:02 +00:00
config changes
jedispool is now disabled by default, some minor config changes
This commit is contained in:
parent
8aaae6702e
commit
f96c5759a2
@ -115,7 +115,7 @@ public interface ConfigLoader {
|
||||
throw new RuntimeException("No redis server specified");
|
||||
}
|
||||
JedisPool jedisPool = null;
|
||||
if (node.getNode("enable-jedis-pool-compatibility").getBoolean(true)) {
|
||||
if (node.getNode("enable-jedis-pool-compatibility").getBoolean(false)) {
|
||||
JedisPoolConfig config = new JedisPoolConfig();
|
||||
config.setMaxTotal(node.getNode("compatibility-max-connections").getInt(3));
|
||||
config.setBlockWhenExhausted(true);
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RedisBungee configuration file.
|
||||
# Get Redis from http://redis.io/
|
||||
# you need Redis so get Redis from http://redis.io/ or install it from your package manager
|
||||
|
||||
# The Redis server you use.
|
||||
# The Redis server you will use.
|
||||
# these settings are ignored when cluster mode is enabled.
|
||||
redis-server: 127.0.0.1
|
||||
redis-port: 6379
|
||||
@ -48,9 +48,10 @@ proxy-id: "test-1"
|
||||
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool.
|
||||
# which will break compatibility with old plugins that uses RedisBungee JedisPool
|
||||
# so to mitigate this issue, we will instruct RedisBungee to init an JedisPool for compatibility reasons.
|
||||
# enabled by default
|
||||
# disabled by default
|
||||
# ignored when cluster mode is enabled
|
||||
enable-jedis-pool-compatibility: true
|
||||
enable-jedis-pool-compatibility: false
|
||||
|
||||
# max connections for the compatibility pool
|
||||
compatibility-max-connections: 3
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
logged-in-other-location: "§cYou logged in from another location!"
|
||||
already-logged-in: "§cYou are already logged in!"
|
||||
error: "§cError has occurred"
|
||||
already-logged-in: "§cYou are already logged in!"
|
Loading…
Reference in New Issue
Block a user