![Screenshot 2023-09-30 at 3 33 47 PM](https://private-user-images.githubusercontent.com/56012430/271791970-2b17fc5a-a84a-425a-9cd8-29fc8216f0de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTY5MjAsIm5iZiI6MTcyNDExNjYyMCwicGF0aCI6Ii81NjAxMjQzMC8yNzE3OTE5NzAtMmIxN2ZjNWEtYTg0YS00MjVhLTljZDgtMjlmYzgyMTZmMGRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDAxMTcwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhZDIwY2UyMmI3MjMwZDYzMTRmNTkxY2EwMzgyYWIwYzZjY2QxNTZhYWVjNTYzYjhhZTMwYWQ4Y2UwZmJkNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HN3iv0ow60sioSljTlKVIw6u7PPiPu-Gg-7gy6lUwj0)
conda env create -f environment_xcompat.yml
conda activate parallex
brew tap mongodb/brew
brew install mongodb-community@7.0
brew services start mongodb-community@7.0
mongosh
brew install rabbitmq
brew services start rabbitmq
brew services stop rabbitmq
brew services restart rabbitmq
chmod +x rmq_install.sh
./rmq_install.sh
sudo systemctl start rabbitmq-server
We need to make a user with username test
and password test
so that remote users can reach the RabbitMQ server. guest:guest
is forbidden from accessing remotely.
On linux this can be done using the rmq_setup.sh
script.
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl list_queues
rabbitmqadmin get queue=<name> count=<int>
You should not be developing on windows :/
- Create account at https://ipinfo.io/signup
- Go to token tab on left, and copy the token.
- Go to repository and create a folder called "access_tokens" in root directory.
- Then create a file called "ipinfo" and paste this access token from step 2 into the file.
Build Required Files/Protos Run build.sh from Parallex/ directory
Run Command Node Run start_command_node.sh from command directory
Run Provider Daemon
Inject env variable PARALLEX_PROVIDER_ID
to be consistent with backend provider._id in model.
Run run_daemon.sh from provider directory.
SECRET_KEY=[key] node index.js
$env:SECRET_KEY='abcde'; node index.js
set SECRET_KEY=abcde && node index.js
Note: you must have the Parallex.pem ssh key in your root directory of this repoistory locally.
To install dependencies (RabbitMQ, MongoDB, git, conda, etc) when deploying for the first time
python setup_cluster.py -i
To simply redploy with updated code
python setup_cluster.py
conda env export > environment_xcompat.yml
Run from a dir with Python files to format all Python files according to google style guide
yapf --in-place --recursive --style="{based_on_style: google}" *.py
Ray.io For job definition and paralellization https://www.ray.io
gRPC For node communication https://grpc.io
ident.me For public IP address https://api.ident.me
psutil For system metrics https://psutil.readthedocs.io/en/latest/#
ipinfo For IP geolocation https://ipinfo.io
aio-pika For asynchronous RabbitMQ https://aio-pika.readthedocs.io/en/latest/
RabbitMQ For the distributed message broker https://www.rabbitmq.com