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

Setting Up the Benchmark Runner for Cinder on an AWS Instance #9

Open
MAMV3x3 opened this issue Oct 20, 2023 · 0 comments
Open

Setting Up the Benchmark Runner for Cinder on an AWS Instance #9

MAMV3x3 opened this issue Oct 20, 2023 · 0 comments
Assignees

Comments

@MAMV3x3
Copy link
Collaborator

MAMV3x3 commented Oct 20, 2023

Steps Taken:

  1. Repository Initialization:
    • Created a new empty repository on GitHub named cinder_bench_runner.
    • Cloned the repository locally.
    • Added bench_runner from a specific Git tag to requirements.txt.
  2. Environment Setup:
    • Created a virtual environment using python -m venv venv.
    • Populated the requirements.txt with git+https://github.com/faster-cpython/bench_runner@v0.2.2#egg=bench_runner.
    • Activated the virtual environment and installed the required packages from requirements.txt.
  3. Initial Benchmarking Setup:
  4. AWS EC2 Instance Creation:
    • Initially set up an Amazon Linux 2023 instance but faced some compatibility issues.
    • Decided to set up a new instance using Ubuntu for compatibility.
  5. Setting Up GitHub Actions Runner on EC2:
    • SSH'd into the EC2 instance.
    • Downloaded and extracted the GitHub Actions runner.
    • Configured the runner for the cinder_bench_runner repository following the self-hosted runner documentation.
    • Added necessary labels such as self-hosted, Linux, X64, bare-metal, and linux-x64-ec2runner to the runner.
    • Set up the runner as a service to ensure it starts automatically on boot.
      • Add the runner as a service:
        • sudo ./svc.sh install
        • sudo ./svc.sh start
      • Verify the runner's status:
        • sudo ./svc.sh status
      • (Optional) If you want to stop or remove the service in the future:
        • sudo ./svc.sh stop
        • sudo ./svc.sh uninstall
  6. Re-attempting Benchmarking Setup:
    • In response to the issue raised in Error when Setting Up bench_runner on EC2 Instance #8, I created a runners.ini file at the root of the repository. The exact configuration can be viewed here.
    • Successfully executed python -m bench_runner.scripts.install.
    • This step created necessary configuration files like README.md, bases.txt and benchmarks.manifest.

For an in-depth view of the setup and configuration, please refer to the bench_runner repository: cinder_bench_runner.

Closes #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant