forked from Rana718/FyroDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
198 lines (162 loc) · 5.82 KB
/
Copy pathTaskfile.yml
File metadata and controls
198 lines (162 loc) · 5.82 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
version: "3"
vars:
BINARY: fyro_db
VERSION: v0.2.1
tasks:
run:
desc: Run the binary
cmds:
- task: build
- target/release/{{.BINARY}}
docs-build:
desc: Build the docs
cmds:
- cd docs && bun run build
docs-run:
desc: Run the docs
cmds:
- cd docs && bun run start
docs-dev:
desc: Run the docs in development mode
cmds:
- cd docs && bun run dev
build:
desc: Release build
cmds:
- cargo build --release
lint:
desc: Lint check
cmds:
- cargo clippy
test:
desc: Run tests with summary
cmds:
- ./scripts/test.sh {{.CLI_ARGS}}
bench-key-fyrodb:
desc: benchmark key operations on FyroDB
cmds:
- cd bench && go run . -m key
bench-key-redis:
desc: benchmark key operations on redis
cmds:
- cd bench && go run . -p 6379 -m key
bench-key-dragonfly:
desc: benchmark key operations on DragonflyDB
cmds:
- cd bench && go run . -p 6379 -m key
bench-pub-fyrodb:
desc: benchmark pub operations on FyroDB
cmds:
- cd bench && go run . -m pub
bench-pub-redis:
desc: benchmark pub operations on redis
cmds:
- cd bench && go run . -p 6379 -m pub
bench-pub-dragonfly:
desc: benchmark pub operations on DragonflyDB
cmds:
- cd bench && go run . -p 6379 -m pub
bench-fyrodb:
desc: benchmark FyroDB
cmds:
- cd bench && go run .
bench-redis:
desc: benchmark redis
cmds:
- cd bench && go run . -p 6379
bench-dragonfly:
desc: benchmark DragonflyDB
cmds:
- cd bench && go run . -p 6379
bench-fyrodb-f:
desc: "benchmark FyroDB without flushing between phases: keyspace accumulates, final RSS + key count reported"
cmds:
- cd bench && go run . -f
bench-redis-f:
desc: "benchmark redis without flushing between phases: keyspace accumulates, final RSS + key count reported"
cmds:
- cd bench && go run . -p 6379 -f
bench-dragonfly-f:
desc: "benchmark DragonflyDB without flushing between phases: keyspace accumulates, final RSS + key count reported"
cmds:
- cd bench && go run . -p 6379 -f
bench-fyro-cluster-f:
desc: "benchmark FyroDB cluster without flushing between phases: keyspace accumulates, final RSS + key count reported"
cmds:
- cd bench && go run . -f -cluster 127.0.0.1:8000,127.0.0.1:8001,127.0.0.1:8002
bench-redis-cluster:
desc: "benchmark redis cluster: 6 masters, one per physical core (pair with bench-fyro-cluster)"
cmds:
- cd bench && go run . -cluster 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003,127.0.0.1:7004,127.0.0.1:7005,127.0.0.1:7006
bench-redis-cluster-12:
desc: "benchmark redis cluster: 12 masters, one per hardware thread (pair with bench-fyro-cluster-12)"
cmds:
- cd bench && go run . -cluster 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003,127.0.0.1:7004,127.0.0.1:7005,127.0.0.1:7006,127.0.0.1:7007,127.0.0.1:7008,127.0.0.1:7009,127.0.0.1:7010,127.0.0.1:7011,127.0.0.1:7012
bench-fyro-cluster:
desc: "benchmark FyroDB cluster: 3 nodes x 2 workers = 6 (pair with bench-redis-cluster)"
cmds:
- cd bench && go run . -cluster 127.0.0.1:8000,127.0.0.1:8001,127.0.0.1:8002
bench-fyro-cluster-12:
desc: "benchmark FyroDB cluster: 3 nodes x 4 workers = 12 (pair with bench-redis-cluster-12)"
cmds:
- cd bench && go run . -cluster 127.0.0.1:8000,127.0.0.1:8001,127.0.0.1:8002
redis-up:
desc: Start Redis Cluster (6 masters)
cmds:
- task: redis-down-12
- cd bench/redis-cluster && docker compose up -d
- cd bench/redis-cluster && docker compose wait cluster-init
redis-down:
desc: Stop Redis Cluster (6 masters)
cmds:
- cd bench/redis-cluster && docker compose down
dragonfly-up:
desc: Start DragonflyDB (single node, port 6379)
cmds:
- cd bench/dragonfly && docker compose up -d
dragonfly-down:
desc: Stop DragonflyDB
cmds:
- cd bench/dragonfly && docker compose down
redis-up-12:
desc: Start Redis Cluster (12 masters, one per hardware thread)
cmds:
- task: redis-down
- cd bench/redis-cluster && docker compose -f docker-compose.12.yml up -d
- cd bench/redis-cluster && docker compose -f docker-compose.12.yml wait cluster-init
redis-down-12:
desc: Stop Redis Cluster (12 masters)
cmds:
- cd bench/redis-cluster && docker compose -f docker-compose.12.yml down
fyro-up:
desc: Start Fyro Cluster
cmds:
- docker compose -f docker-compose.cluster.yml up -d --build
fyro-down:
desc: Stop Fyro Cluster
cmds:
- docker compose -f docker-compose.cluster.yml down
fyro-rmi:
desc: rmi Fyro
cmds:
- docker rmi og-m-fyrodb-a og-m-fyrodb-b og-m-fyrodb-c
fyro-dock:
desc: fyrodb runing under docker with 1 worker && 10K keys
cmds:
- docker build -t fyrodb .
- docker run -d --name fyrodb-1k -p 8000:8000 -e FYRODB_WORKERS=1 fyrodb
redis-clean:
desc: Flush all data from every Redis Cluster master node (6 masters)
cmds:
- for: ["7001", "7002", "7003", "7004", "7005", "7006"]
cmd: redis-cli -p {{.ITEM}} FLUSHALL
redis-clean-12:
desc: Flush all data from every Redis Cluster master node (12 masters)
cmds:
- for: ["7001", "7002", "7003", "7004", "7005", "7006", "7007", "7008", "7009", "7010", "7011", "7012"]
cmd: redis-cli -p {{.ITEM}} FLUSHALL
fyro-clean:
desc: Flush all data from every Fyro Cluster master node
cmds:
- for: ["8000", "8001", "8002"]
cmd: redis-cli -p {{.ITEM}} FLUSHALL