Skip to content

Commit 1d8efb7

Browse files
quantranhong1999Arsnael
authored andcommitted
JAMES-4124 Upgrade Rspamd to 3.12.0
Which would allow Rspamd to execute EVASHA_RO commands against Kvrocks replicas (instead of EVASHA which Kvrocks replicas reject ATM). cf: rspamd/rspamd#5419
1 parent 4e4d4e4 commit 1d8efb7

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

third-party/rspamd/docker-compose-distributed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ services:
108108
redis:
109109
condition: service_started
110110
container_name: rspamd
111-
image: rspamd/rspamd:3.9.1
111+
image: rspamd/rspamd:3.12.0
112112
environment:
113113
- RSPAMD_PASSWORD=admin
114114
volumes:

third-party/rspamd/docker-compose-rspamd-with-kvrocks-sentinel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ services:
103103
kvrocks-master:
104104
condition: service_healthy
105105
container_name: rspamd
106-
image: rspamd/rspamd:3.11.1 # Rspamd version >= 3.10 is needed to fix the Redis read-only issue when Rspamd gets bayes statistics too.
106+
image: rspamd/rspamd:3.12.0
107107
environment:
108108
- RSPAMD_PASSWORD=admin
109109
volumes:

third-party/rspamd/docker-compose-rspamd-with-kvrocks-standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ services:
5454
kvrocks:
5555
condition: service_started
5656
container_name: rspamd
57-
image: rspamd/rspamd:3.9.1
57+
image: rspamd/rspamd:3.12.0
5858
environment:
5959
- RSPAMD_PASSWORD=admin
6060
volumes:

third-party/rspamd/docker-compose-rspamd-with-redis-sentinel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ services:
102102
redis-master:
103103
condition: service_healthy
104104
container_name: rspamd
105-
image: rspamd/rspamd:3.9.1
105+
image: rspamd/rspamd:3.12.0
106106
environment:
107107
- RSPAMD_PASSWORD=admin
108108
volumes:

third-party/rspamd/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ services:
4545
redis:
4646
condition: service_started
4747
container_name: rspamd
48-
image: rspamd/rspamd:3.9.1
48+
image: rspamd/rspamd:3.12.0
4949
environment:
5050
- RSPAMD_PASSWORD=admin
5151
volumes:

third-party/rspamd/sample-configuration/kvrocks/sentinel/replica-node/kvrocks.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ port 6379
1010
# This allows Rspamd to execute EVALSHA read-only Lua script on Kvrocks replicas to get the BAYES statistics.
1111
# Cautious: This would allow Kvrocks replicas to be writable, therefore we need to carefully configure Rspamd or whatever app to use the correct master/replicas Kvrocks endpoints.
1212
# There is also a small time window upon Redis Sentinel failover that Rspamd could write to the old master (new replica). We could very likely accept that for spam learning data.
13-
slave-read-only no
13+
# Only needed if Rspamd < 3.12.0
14+
# slave-read-only no

third-party/rspamd/sample-configuration/rspamd-kvrocks-sentinel.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ sentinels = "sentinel-1:26379,sentinel-2:26379,sentinel-3:26379";
33
password = "secret1";
44
sentinel_watch_time = 10s; # How often Rspam will query sentinels for masters and slaves
55
sentinel_masters_pattern = "^mymaster.*$"; # Defines masters pattern to match in Lua syntax (no pattern means all masters)
6-
timeout = 5s;
6+
timeout = 5s;
7+
redis_version = 7; # Allow Rspamd to execute the EVALSHA_RO command against Kvrocks replicas. cf https://github.com/rspamd/rspamd/pull/5419

third-party/rspamd/src/test/java/org/apache/james/rspamd/RspamdExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class RspamdExtension implements GuiceModuleTestExtension {
4040
public static final Duration STARTUP_TIMEOUT = Duration.ofMinutes(5);
4141
public static final String PASSWORD = "admin";
4242

43-
private static final DockerImageName RSPAMD_IMAGE = DockerImageName.parse("rspamd/rspamd").withTag("3.9.1");
43+
private static final DockerImageName RSPAMD_IMAGE = DockerImageName.parse("rspamd/rspamd").withTag("3.12.0");
4444
private static final DockerImageName REDIS_IMAGE = DockerImageName.parse("apache/kvrocks").withTag("2.11.1");
4545
private static final DockerImageName CLAMAV_IMAGE = DockerImageName.parse("clamav/clamav").withTag("1.3");
4646
private static final int RSPAMD_DEFAULT_PORT = 11334;

0 commit comments

Comments
 (0)