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

ROX-19980 pre-built scanner-db image #1310

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ludydoo
Copy link

@ludydoo ludydoo commented Oct 26, 2023

No description provided.

@ghost
Copy link

ghost commented Oct 26, 2023

Images are ready for the commit at 4328d2f.

To use the images, use the tag 2.31.x-47-g4328d2f402.

@ludydoo ludydoo force-pushed the ROX-19980-scanner-db-contention branch from 906063a to 7e434d1 Compare October 27, 2023 13:37
@ludydoo
Copy link
Author

ludydoo commented Oct 27, 2023

/retest

This reverts commit d453bf0.
This reverts commit d710e77.
Comment on lines +11 to +21
echo "Creating /var/lib/postgresql/data/pgdata..."
mkdir -p /var/lib/postgresql/data/pgdata

echo "Moving archive to target directory..."
mv /tmp/data.tar.gz /var/lib/postgresql/data/pgdata/data.tar.gz

echo "Uncompressing into /var/lib/pgsql/data/pgdata..."
tar -xzf /var/lib/postgresql/data/pgdata/data.tar.gz -C /var/lib/postgresql/data/pgdata

echo "Removing archive..."
rm /var/lib/postgresql/data/pgdata/data.tar.gz
Copy link
Member

@SimonBaeumer SimonBaeumer Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvdm @RTann Could we move these steps to build time instead of start-up time?
@ludydoo proposes this to save IO in the cloud service which prevents us from cluster upgrades and increases ACS upgrade complexity.
Every restart of ACS instances causes to write ~1.8GB per instance.
Additionally the manifest must be updated that the scanner-db pod can read the Postgres Password.

What do you think about this approach? It seems simple and scaleable to us.
cc @ludydoo

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