Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Configure collections_publisher_db_admin machine class #11353

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

ChrisBAshton
Copy link
Contributor

This creates a dedicated database admin machine for Collections
Publisher, following the Account API convention devised in #11342.
This is in order to facilitate the implementation of RFC-143,
which concludes that every GOV.UK relational database should have
its own RDS instance.

Trello: https://trello.com/c/HjK4AbUS/49-configure-puppet-for-new-db-admin-mysql-instances

@ChrisBAshton ChrisBAshton force-pushed the collections-publisher-db-admin branch from eb9542b to 9f9be46 Compare December 14, 2021 14:18
@@ -468,6 +468,8 @@ govuk::apps::ckan::s3_aws_secret_access_key: "%{hiera('s3_aws_secret_access_key'

govuk::apps::collections::unicorn_worker_processes: 8

# TODO: switch to "collections-publisher-mysql" and uncomment the 'push'
# `govuk_env_sync::tasks` tasks when we're ready to switch to the dedicated RDS instance
govuk::apps::collections_publisher::db_hostname: "mysql-primary"
govuk::apps::collections_publisher::jwt_auth_secret: "%{hiera('jwt_auth_secret')}"
govuk::apps::collections_publisher::redis_host: "%{hiera('sidekiq_host')}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unlike the PostgreSQL equivalent, we don't need to set a s_collections_publisher_db_admin::apt_mirror_hostname here, as it isn't used anywhere in the govuk::node::s_collections_publisher_db_admin class.

@ChrisBAshton ChrisBAshton marked this pull request as ready for review December 14, 2021 14:23
@ChrisBAshton ChrisBAshton force-pushed the collections-publisher-db-admin branch from 9f9be46 to d509c2f Compare December 14, 2021 14:25
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

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

Looks good - thanks Chris

This creates a dedicated database admin machine for Collections
Publisher, following the Account API convention devised in #11342.
This is in order to facilitate the implementation of [RFC-143][],
which concludes that every GOV.UK relational database should have
its own RDS instance.

Trello: https://trello.com/c/HjK4AbUS/49-configure-puppet-for-new-db-admin-mysql-instances

[RFC-143]: https://github.com/alphagov/govuk-rfcs/blob/main/rfc-143-split-database-instances.md
@ChrisBAshton ChrisBAshton force-pushed the collections-publisher-db-admin branch from d509c2f to d70272b Compare December 14, 2021 15:52
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

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

Nice one

@ChrisBAshton ChrisBAshton merged commit 4404214 into main Dec 14, 2021
@ChrisBAshton ChrisBAshton deleted the collections-publisher-db-admin branch December 14, 2021 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants