Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3399 cluster, the master and the worker how to configure? #33

Closed
smallverse opened this issue Mar 26, 2019 · 3 comments
Closed

3399 cluster, the master and the worker how to configure? #33

smallverse opened this issue Mar 26, 2019 · 3 comments

Comments

@smallverse
Copy link

3399 cluster, the master and the worker how to configure

I here the current configuration as follows, but no message processing

master(192.168.132.75):

$ cat runtime/embedding_aarch64.sh
#!/usr/bin/env bash
export RUNTIME_BASEDIR=`pwd`
export LD_LIBRARY_PATH=/system/lib64:$LD_LIBRARY_PATH:$PREFIX/lib64:/system/vendor/lib64/egl:/system/vendor/lib64
export DATA_RUNTIME_FOLDER=../model
export DEVICE_UUID_FILEPATH=/data/data/com.termux/files/home/.ro_serialno
export DEVICE_GROUP_ID_FILEPATH=/data/data/com.termux/files/home/.groupid.txt
export RUNTIME_BASEDIR=/data/data/com.termux/files/home/runtime
export CLUSTER_REDIS_ADDRESS=192.168.132.35
export CLUSTER_REDIS_PORT=6379
export CLUSTER_CONCURRENCY=2
cd bin
while [ 1 ]
do
    WORKER_TYPE=embedding REDIS_ADDRESS=localhost WORKER_BROKER=redis://localhost/0 ./embedding worker --loglevel INFO -E -n embedding -c 1 -Q embedding
    sleep 20
done

worker(192.168.132.132):

$ cat runtime/embedding_aarch64.sh
#!/usr/bin/env bash
export RUNTIME_BASEDIR=`pwd`
export LD_LIBRARY_PATH=/system/lib64:$LD_LIBRARY_PATH:$PREFIX/lib64:/system/vendor/lib64/egl:/system/vendor/lib64
export DATA_RUNTIME_FOLDER=../model
export DEVICE_UUID_FILEPATH=/data/data/com.termux/files/home/.ro_serialno
export DEVICE_GROUP_ID_FILEPATH=/data/data/com.termux/files/home/.groupid.txt
export RUNTIME_BASEDIR=/data/data/com.termux/files/home/runtime
export CLUSTER_REDIS_ADDRESS=192.168.132.35
export CLUSTER_REDIS_PORT=6379
export CLUSTER_CONCURRENCY=2
export CLUSTER_WORKERONLY=True
cd bin
while [ 1 ]
do
    WORKER_TYPE=embedding REDIS_ADDRESS=localhost WORKER_BROKER=redis://localhost/0 ./embedding worker --loglevel INFO -E -n embedding -c 1 -Q embedding
    sleep 20
done
@solderzzc
Copy link
Member

CLUSTER_REDIS_ADDRESS also need to be set in detector, please try the latest code which has env/common.sh for environment setup in one place.

@solderzzc
Copy link
Member

@yufeng2015 you can use search to check where this environment ver need to be set:
https://github.com/SharpAI/DeepCamera/search?q=CLUSTER_REDIS_ADDRESS&unscoped_q=CLUSTER_REDIS_ADDRESS

@solderzzc
Copy link
Member

Close for now, reopen if needed.

solderzzc pushed a commit that referenced this issue Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants