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

New ebs volume #277

Merged
merged 35 commits into from
Nov 7, 2024
Merged

New ebs volume #277

merged 35 commits into from
Nov 7, 2024

Conversation

faizan12123
Copy link
Contributor

@faizan12123 faizan12123 commented Sep 23, 2024

Description

Previously we had to do this when calculating if the repo can fit in the EBS:

# The worst repo encountered (so far) is twice the size on disk

if (repo_size * 2) >= available_space: return False

We had to do this because we wanted to leave enough space incase certain plugins are ran that take up more storage

Now we do not need to do this as the cloned repos and the docker instance are on 2 different EBS volumes, no longer interfering with each other

* Container orchestration changes removed from this PR due to some issues*

Motivation and Context

Our EBS volumes were getting full since we had both the cloned repos and the docker daemon running in the same volume. This causes issues because we are not able to predict how much memory/storage our docker containers are going to take up as it is dependent on what plugins are running and it is very variable. Creating a seperate EBS volume for just cloned repos helps us provide more storage for our docker instance to run the plugins in isolation, and our cloned repos to have their own dedicated storage.

How Has This Been Tested?

in a dev environment

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation change

Checklist

  • My code follows conforms to the coding standards.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@faizan12123 faizan12123 marked this pull request as ready for review November 4, 2024 19:08
@faizan12123 faizan12123 requested a review from a team as a code owner November 4, 2024 19:08
catching up branch with main
@faizan12123 faizan12123 added this pull request to the merge queue Nov 7, 2024
@faizan12123 faizan12123 removed this pull request from the merge queue due to a manual request Nov 7, 2024
@faizan12123 faizan12123 added this pull request to the merge queue Nov 7, 2024
@Kamsiy Kamsiy removed this pull request from the merge queue due to a manual request Nov 7, 2024
@Kamsiy Kamsiy added this pull request to the merge queue Nov 7, 2024
@faizan12123 faizan12123 removed this pull request from the merge queue due to a manual request Nov 7, 2024
@faizan12123 faizan12123 added this pull request to the merge queue Nov 7, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 7, 2024
* creating new directory, creating new EBS volume, creating mounting point

* changing dir in engine util

* adjusting new volume size

* changing conflicting ebs names

* fixing block device path shell script

* trying different path name

* trying different directory name

* chaning file path name

* changing dir name back

* adding error handling to engine shell script

* formatting tf file

* adding some logging and cleaning shell script

* add volume path

* running ruf

* adding logging to available space

* adding logging to engine.py

* change log type

* adding another log case

* changing path for checking disk space

* more debugging

* adding more logging

* fixing clean up dir

* updating cloned_repo volume size

* removing comment
@g-marconet g-marconet removed this pull request from the merge queue due to a manual request Nov 7, 2024
@g-marconet g-marconet added this pull request to the merge queue Nov 7, 2024
@davakos davakos removed this pull request from the merge queue due to the queue being cleared Nov 7, 2024
alligning main with feature branch
@faizan12123 faizan12123 merged commit 25ad363 into main Nov 7, 2024
5 checks passed
@faizan12123 faizan12123 deleted the new-ebs-volume branch November 7, 2024 21:43
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

Successfully merging this pull request may close these issues.

2 participants