Commit 2fb12a0
authored
## Description
Switches the test and dev infrastructure from `redis/redis-stack-server`
to the `valkey/valkey:9.0` image, in both the tox
(`[docker:valkey-circ]`) and `docker-compose` stacks. `9.0` is a rolling
tag, so the stacks pick up the latest 9.0.x patch automatically
(matching the floating `postgres:16` style already used here). The
container/service is renamed to reflect the engine it actually runs
(`valkey-circ` in tox; the `valkey` compose service, with its
`depends_on` and `redis://valkey:6379` host references updated, and a
`valkey-cli` healthcheck). The `redis://` URL scheme and all
`PALACE_*REDIS*` config keys are deliberately left unchanged, since they
name the protocol/contract rather than the instance — Valkey is
protocol- and command-compatible and we still use the `redis-py` client.
The README `### Redis` section becomes `### Valkey`, noting that we run
and test against Valkey while Redis remains a supported drop-in.
This change also drops the unused ElastiCache detection
(`Redis.elasticache`) and its now-orphaned `cached_property` import. The
property had no callers, and we run Valkey directly now.
> Note: I'm going to keep this in draft until we've updated our
infrastructure to valkey, but its ready for code review any time.
## Motivation and Context
We want to evaluate (and move to) Valkey instead of Redis. Our usage is
limited to core Redis commands (strings, sets, expiry,
`WATCH`/pipelines, and Lua scripts via `EVALSHA`) plus Celery as a
broker/result backend — none of the Redis Stack modules our old image
bundled — so Valkey is a true drop-in. We pin to the `9.0` line because
that is the version AWS ElastiCache for Valkey currently runs, which is
our intended upgrade target; testing against it directly keeps the test
stack aligned with production.
JIRA: PP-4544
## How Has This Been Tested?
- Tests run in CI
## Checklist
- [x] I have updated the documentation accordingly.
- [x] All new and existing tests passed.
1 parent 0eb4915 commit 2fb12a0
4 files changed
Lines changed: 17 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | | - | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | 154 | | |
167 | 155 | | |
168 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments