|
4 months ago | |
---|---|---|
.. | ||
nginx | 4 months ago | |
systemd | 4 months ago | |
Makefile | 4 months ago | |
Readme.md | 4 months ago | |
agent_api_test.py | 4 months ago | |
boot.sh | 4 months ago | |
check_ssm.py | 4 months ago | |
get_logs.py | 4 months ago | |
install.sh | 4 months ago | |
main.py | 4 months ago | |
pip.freeze | 4 months ago | |
requirements.txt | 4 months ago | |
rerun-git.sh | 4 months ago | |
rerun.sh | 4 months ago | |
run_logs.sh | 4 months ago | |
run_logs2.sh | 4 months ago | |
skypilot.yaml | 4 months ago | |
ssh.py | 4 months ago | |
terminate.py | 4 months ago | |
terminate.sh | 4 months ago | |
terminate_spots.py | 4 months ago | |
terraform.md | 4 months ago | |
test.sh | 4 months ago | |
test2.sh | 4 months ago | |
test_api.py | 4 months ago | |
test_endpoints.py | 4 months ago | |
tools.sh | 4 months ago | |
uvicorn_runner.py | 4 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-XXXX
with 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