Commit Graph

64 Commits

Author SHA1 Message Date
Vsevolod Stakhov
db7221371c
Merge pull request #3016 from CAPSLOCK2000/set_redis_sentinel_masters_pattern
[Minor] Actually set sentinel_masters_pattern.
2019-08-26 18:15:10 +01:00
cgielen
5b370ea69b Actually set sentinel_masters_pattern. 2019-08-23 16:18:33 +02:00
cgielen
80a6a4e45c typo 2019-08-23 16:00:36 +02:00
cgielen
9fe4c804c1 wrap ipv6-adresses in brackets 2019-08-14 14:01:13 +02:00
Vsevolod Stakhov
0b628d0195 [Minor] Lua_redis: Allow requests with no callback 2019-07-27 11:02:53 +01:00
Vsevolod Stakhov
2ec42fe11c [Test] Sigh, just wait... 2019-07-19 18:36:47 +01:00
Vsevolod Stakhov
a6ff2b45b4 [Minor] Slightly improve logging 2019-07-19 16:51:53 +01:00
Vsevolod Stakhov
437c520efb [Minor] Do not log arguments as it breaks tests 2019-07-15 15:43:15 +01:00
Vsevolod Stakhov
d2f9feaf54 [Minor] Lua_redis: Report script registration position on errors 2019-07-07 09:44:45 +01:00
Vsevolod Stakhov
1a2844e855 [Feature] Implement Redis prefixes registration logic 2019-07-05 11:40:10 +01:00
Vsevolod Stakhov
72ceee149f [Minor] Allow to close connection to redis without pooling
Issue: #2796
2019-06-28 12:13:52 +01:00
Vsevolod Stakhov
4ac44f3b22 [Fix] Fix redis sentinel support
Issue: #2796
2019-06-26 13:24:03 +01:00
Vsevolod Stakhov
3c918d26c6 [Minor] Allow to work without rspamd_config object 2019-04-06 09:36:00 +01:00
Vsevolod Stakhov
7dfecb9cc8 [Fix] Another fix for Redis sentinel
Issue: #2796
2019-04-01 14:22:17 +01:00
Vsevolod Stakhov
efcdbf24a5 [Fix] Rework cached Redis logic to avoid sentinels breaking
Issue: #2796
2019-03-29 09:41:07 +00:00
Vsevolod Stakhov
d027dca0f2 [Feature] Query sentinel on master errors
Issue: #2665
2018-12-05 14:41:01 +00:00
Vsevolod Stakhov
8feff3e587 [Minor] Skip broken slaves retrieved from sentinel
Issue: #2667
2018-12-05 14:33:48 +00:00
Vsevolod Stakhov
b99cd00a12 [Fix] Sort data received from Sentinel to avoid constant replacing
Issue: #2664
Closes: #2664
2018-12-04 16:23:18 +00:00
Vsevolod Stakhov
390c2f4e28 [Fix] Set proper element when reading data from Sentinel
Issue: #2663
Closes: #2663
2018-12-04 16:20:39 +00:00
Vsevolod Stakhov
16ff3e3d00 [Minor] Fix hash calculation 2018-11-24 09:26:33 +00:00
Vsevolod Stakhov
a1e3ab7e5e [Minor] Do not expand implicit arrays as it breaks things 2018-11-23 18:09:28 +00:00
Vsevolod Stakhov
461412acde [Project] Add preliminary Redis Sentinel support 2018-11-22 17:23:04 +00:00
Vsevolod Stakhov
b8220636d9 [Minor] Fix var name 2018-10-26 15:27:47 +01:00
Vsevolod Stakhov
880883e61a [Minor] Fix lua warnings 2018-10-25 17:08:52 +01:00
Vsevolod Stakhov
aec26d2291 [Minor] Add ability to debug lua redis calls 2018-10-25 14:21:42 +01:00
Mikhail Galanin
4dfe49bc16 [Minor] Fixed sync redis connection with default arguments in rspamadm 2018-10-01 10:41:51 +01:00
Vsevolod Stakhov
7f90ecb880 [Minor] Sigh, disable redis schema usage for now 2018-09-20 14:32:35 +01:00
Vsevolod Stakhov
8726112ccb [Minor] Fix more issues with reputation and redis schema 2018-09-20 13:42:13 +01:00
Vsevolod Stakhov
ba2f3148eb [Feature] Add schema validation for Redis settings 2018-09-20 13:42:13 +01:00
Vsevolod Stakhov
29a7f3ba8b [Minor] Add lua_redis.connect method 2018-09-11 16:24:22 +01:00
Mikhail Galanin
09551bcf6a Merge branch 'master' into redis-coroutines 2018-09-11 11:07:58 +01:00
Vsevolod Stakhov
4beacdc680 [Minor] Add a generic redis request method 2018-09-11 11:02:30 +01:00
Mikhail Galanin
1b5cef0e88 [Minor] Updated Lua to comply the new call semantic 2018-09-10 15:17:14 +01:00
Boris Gulay
529f6147b5 Fix redis read_only was incorrectly set to true.
We should use local variables in this check because result['xxx'] are assigned later.
2018-07-04 12:04:34 +03:00
Vsevolod Stakhov
d4a35f5b65 [Feature] Try harder to upload scripts to the Redis server
Issue: #2186
2018-04-20 15:39:11 +01:00
Vsevolod Stakhov
994f9676d2 [Minor] Add support of read only redis params 2018-04-19 13:42:23 +01:00
Alexander Moisseev
a9ff59c94b [Minor] Stop expiry if read_servers configured 2018-04-17 19:34:37 +03:00
Vsevolod Stakhov
e9c35582e7 [Minor] Allow to parse integer database names for Redis
Issue: #2083
Closes: #2083
2018-03-19 14:13:02 +00:00
Vsevolod Stakhov
3297040791 [Minor] Fix reporting of fatal errors in redis scripts 2018-03-12 13:12:06 +00:00
Vsevolod Stakhov
4a55801321 [Minor] Fix redis-less setup 2018-03-09 13:00:18 +00:00
Vsevolod Stakhov
9d7ebd2f71 [Minor] Fix dealing with argv in scripts 2018-02-28 14:15:46 +00:00
Andrew Lewis
c73aa73b76 [Minor] Rename variables for clarity 2018-02-27 16:35:29 +02:00
Andrew Lewis
6179837c52 [Fix] Redis key expansion: EVAL: deal with strings 2018-02-27 15:18:48 +02:00
Andrew Lewis
1e54b03ed6 [Fix] Deal with non-key arguments in lua_redis.exec_script 2018-02-27 15:00:29 +02:00
Andrew Lewis
a3270c17ab [Minor] Start of documentation for Lua API in Lua 2018-02-23 15:32:17 +02:00
Vsevolod Stakhov
395c1e6847 [Fix] Fix various issues in stat_convert 2018-02-21 15:45:12 +00:00
Vsevolod Stakhov
98fc96ac69 [Minor] Add more logging about Redis errors 2018-02-19 16:19:18 +00:00
Vsevolod Stakhov
5a9b7ee710 [Project] Preliminary version of the new stat_convert 2018-02-15 15:28:47 +00:00
Vsevolod Stakhov
ab0415eae0 [Minor] Allow to specify extra options on Redis requests 2018-02-14 14:45:25 +00:00
Vsevolod Stakhov
7305bc1e97 [Feature] Add method to do a synchronous Redis connection 2018-02-12 15:57:33 +00:00