mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-05 04:48: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");
|
throw new RuntimeException("No redis server specified");
|
||||||
}
|
}
|
||||||
JedisPool jedisPool = null;
|
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();
|
JedisPoolConfig config = new JedisPoolConfig();
|
||||||
config.setMaxTotal(node.getNode("compatibility-max-connections").getInt(3));
|
config.setMaxTotal(node.getNode("compatibility-max-connections").getInt(3));
|
||||||
config.setBlockWhenExhausted(true);
|
config.setBlockWhenExhausted(true);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# RedisBungee configuration file.
|
# 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.
|
# these settings are ignored when cluster mode is enabled.
|
||||||
redis-server: 127.0.0.1
|
redis-server: 127.0.0.1
|
||||||
redis-port: 6379
|
redis-port: 6379
|
||||||
@ -48,9 +48,10 @@ proxy-id: "test-1"
|
|||||||
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool.
|
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool.
|
||||||
# which will break compatibility with old plugins that uses RedisBungee 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.
|
# 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
|
# ignored when cluster mode is enabled
|
||||||
enable-jedis-pool-compatibility: true
|
enable-jedis-pool-compatibility: false
|
||||||
|
|
||||||
# max connections for the compatibility pool
|
# max connections for the compatibility pool
|
||||||
compatibility-max-connections: 3
|
compatibility-max-connections: 3
|
||||||
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
logged-in-other-location: "§cYou logged in from another location!"
|
logged-in-other-location: "§cYou logged in from another location!"
|
||||||
already-logged-in: "§cYou are already logged in!"
|
already-logged-in: "§cYou are already logged in!"
|
||||||
error: "§cError has occurred"
|
|
Loading…
Reference in New Issue
Block a user