Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
csst
Scalebox Apps
Commits
dfd666a2
Commit
dfd666a2
authored
Jul 21, 2023
by
Zhang Xiaoli
Browse files
redis_server: Simulates DFS sending Redis messages
parent
669e4536
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
L1/redis_server/DATA/redis-data/test.sh
L1/redis_server/DATA/redis-data/test.sh
+18
-0
L1/redis_server/README.md
L1/redis_server/README.md
+11
-0
L1/redis_server/docker-compose.yaml
L1/redis_server/docker-compose.yaml
+10
-0
No files found.
L1/redis_server/DATA/redis-data/test.sh
0 → 100644
View file @
dfd666a2
#!/bin/bash
REDIS_SERVER
=
"localhost"
while
true
do
obsid
=
$(
redis-cli
-h
${
REDIS_SERVER
}
-a
123456 rpop single-image-reduction:obsid
)
echo
"obsid : "
$obsid
if
[
-z
"
$obsid
"
]
;
then
echo
"obsid is empty"
sleep
10s
fi
if
[
-n
"
$obsid
"
]
;
then
echo
"obsid is not empty"
send-message
$obsid
sleep
10ms
fi
#exit $?
done
L1/redis_server/README.md
0 → 100644
View file @
dfd666a2
# 模拟DFS发送redis消息
```
bash
for
line
in
{
10160000000..10160000001
}
;
do
echo
$line
;
redis-cli
-h
192.169.23.2
-a
123456 lpush single-image-reduction:obsid
$line
;
done
```
redis-cli -h 127.0.0.1 -a 123456 lpush single-image-reduction:obsid 10160000000;
redis-cli -h 127.0.0.1 -a 123456 lpush single-image-reduction:obsid 30100000003;
redis-cli -h 127.0.0.1 -a 123456 lpush single-image-reduction:obsid 41000000101;
redis-cli -h 127.0.0.1 -a 123456 lpush single-image-reduction:obsid 50100000001;
\ No newline at end of file
L1/redis_server/docker-compose.yaml
0 → 100644
View file @
dfd666a2
version
:
'
3.8'
services
:
redis
:
image
:
redis:5
container_name
:
redis
command
:
redis-server --requirepass
123456
ports
:
-
"
6379:6379"
volumes
:
-
${PWD}/DATA/redis-data:/data
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment