|
|
10 months ago | |
|---|---|---|
| .. | ||
| nginx | 10 months ago | |
| systemd | 10 months ago | |
| Makefile | 10 months ago | |
| Readme.md | 10 months ago | |
| agent_api_test.py | 10 months ago | |
| boot.sh | 10 months ago | |
| check_ssm.py | 10 months ago | |
| get_logs.py | 10 months ago | |
| install.sh | 10 months ago | |
| main.py | 10 months ago | |
| pip.freeze | 10 months ago | |
| requirements.txt | 11 months ago | |
| rerun-git.sh | 10 months ago | |
| rerun.sh | 10 months ago | |
| run_logs.sh | 10 months ago | |
| run_logs2.sh | 10 months ago | |
| skypilot.yaml | 10 months ago | |
| ssh.py | 10 months ago | |
| terminate.py | 10 months ago | |
| terminate.sh | 10 months ago | |
| terminate_spots.py | 10 months ago | |
| terraform.md | 10 months ago | |
| test.sh | 10 months ago | |
| test2.sh | 10 months ago | |
| test_api.py | 10 months ago | |
| test_endpoints.py | 10 months ago | |
| tools.sh | 10 months ago | |
| uvicorn_runner.py | 10 months ago | |
Readme.md
sudo bash ./install.sh
to redo all the steps remove the lock files
rm ${ROOT}/opt/swarms/install/*
or in my system:
export ROOT=/mnt/data1/swarms
sudo rm ${ROOT}/opt/swarms/install/*
rerun
export ROOT=/mnt/data1/swarms;
sudo rm ${ROOT}/opt/swarms/install/*;
sudo bash ./install.sh
- setup To install on linux: https://docs.aws.amazon.com/systems-manager/
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg -i ./session-manager-plugin.deb
- run
To redo the installation steps for the Swarms tool on your system, follow these commands sequentially:
-
Set the ROOT variable:
export ROOT=/mnt/data1/swarms -
Remove the lock files:
sudo rm ${ROOT}/opt/swarms/install/* -
Run the installation script again:
sudo bash ./install.sh
For setting up the Session Manager plugin on Linux, you can follow these commands:
-
Download the Session Manager plugin:
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" -
Install the plugin:
sudo dpkg -i ./session-manager-plugin.deb
After that, you can run your desired commands or workflows.** get the instance id
aws ec2 describe-instances
** start a session
aws ssm start-session --target i-XXXX
** on the machine:
sudo su -
tail /var/log/cloud-init-output.log
Convert this to an automation of your choice to run all the steps and run this on all the instances
To get the instance ID and start a session using AWS CLI, follow these steps:
-
Get the Instance ID: Run the following command to list your instances and their details:
aws ec2 describe-instances -
Start a Session: Replace
i-XXXXwith your actual instance ID from the previous step:aws ssm start-session --target i-XXXX -
On the Machine: After starting the session, you can execute the following commands:
sudo su - tail /var/log/cloud-init-output.log