Commit 83bc4a3
committed
Introduce RDMA transport (experimental)
Valkey Over RDMA[1] has been supported as experimental feature since
Valkey 8.0. Support RDMA transport for the client side.
RDMA is not a builtin feature, supported as module only, so we have to
run test.sh with more argument @VALKEY_RDMA_MODULE and @VALKEY_RDMA_ADDR.
An example to run test.sh:
VALKEY_RDMA_MODULE=/path/to/valkey-rdma.so VALKEY_RDMA_ADDR=192.168.122.1 TEST_RDMA=1 ./test.sh
...
Testing against RDMA connection (192.168.122.1:56379):
#138 Is able to deliver commands: PASSED
#139 Is a able to send commands verbatim: PASSED
#140 %s String interpolation works: PASSED
#141 %b String interpolation works: PASSED
#142 Binary reply length is correct: PASSED
#143 Can parse nil replies: PASSED
#144 Can parse integer replies: PASSED
#145 Can parse multi bulk replies: PASSED
#146 Can handle nested multi bulk replies: PASSED
#147 Send command by passing argc/argv: PASSED
#148 Can pass NULL to valkeyGetReply: PASSED
#149 RESP3 PUSH messages are handled out of band by default: PASSED
#150 We can set a custom RESP3 PUSH handler: PASSED
#151 We properly handle a NIL invalidation payload: PASSED
#152 With no handler, PUSH replies come in-band: PASSED
#153 With no PUSH handler, no replies are lost: PASSED
#154 We set a default RESP3 handler for valkeyContext: PASSED
#155 We don't set a default RESP3 push handler for valkeyAsyncContext: PASSED
#156 Our VALKEY_OPT_NO_PUSH_AUTOFREE flag works: PASSED
#157 We can use valkeyOptions to set a custom PUSH handler for valkeyContext: PASSED
#158 We can use valkeyOptions to set a custom PUSH handler for valkeyAsyncContext: PASSED
#159 We can use valkeyOptions to set privdata: PASSED
#160 Our privdata destructor fires when we free the context: PASSED
#161 Successfully completes a command when the timeout is not exceeded: PASSED
#162 Does not return a reply when the command times out: SKIPPED
#163 Reconnect properly reconnects after a timeout: PASSED
#164 Reconnect properly uses owned parameters: PASSED
#165 Returns I/O error when the connection is lost: PASSED
#166 Returns I/O error on socket timeout: PASSED
#167 Set error when an invalid timeout usec value is used during connect: PASSED
#168 Set error when an invalid timeout sec value is used during connect: PASSED
#169 Append format command: PASSED
#170 Throughput:
(1000x PING: 0.010s)
(1000x LRANGE with 500 elements: 0.060s)
(1000x INCRBY: 0.012s)
(10000x PING (pipelined): 0.066s)
(10000x LRANGE with 500 elements (pipelined): 0.523s)
(10000x INCRBY (pipelined): 0.024s)
...
Link[1]: valkey-io/valkey#477
Signed-off-by: zhenwei pi <[email protected]>1 parent 82ca44e commit 83bc4a3
File tree
8 files changed
+1188
-10
lines changed- include/valkey
- src
- tests
8 files changed
+1188
-10
lines changed| 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 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
114 | 147 | | |
115 | 148 | | |
116 | 149 | | |
| |||
174 | 207 | | |
175 | 208 | | |
176 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
177 | 217 | | |
178 | 218 | | |
179 | 219 | | |
180 | 220 | | |
181 | 221 | | |
182 | 222 | | |
183 | 223 | | |
184 | | - | |
| 224 | + | |
185 | 225 | | |
186 | 226 | | |
187 | 227 | | |
188 | 228 | | |
189 | 229 | | |
190 | 230 | | |
191 | 231 | | |
192 | | - | |
| 232 | + | |
193 | 233 | | |
194 | | - | |
| 234 | + | |
195 | 235 | | |
196 | | - | |
| 236 | + | |
197 | 237 | | |
198 | 238 | | |
199 | 239 | | |
200 | | - | |
| 240 | + | |
201 | 241 | | |
202 | 242 | | |
203 | 243 | | |
| |||
232 | 272 | | |
233 | 273 | | |
234 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
235 | 283 | | |
236 | 284 | | |
237 | 285 | | |
| |||
253 | 301 | | |
254 | 302 | | |
255 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
256 | 314 | | |
257 | 315 | | |
258 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
0 commit comments