Skip to content

allow to split metrix VM from slurm/database VM#535

Closed
mboisson wants to merge 1 commit into
ComputeCanada:mainfrom
mboisson:separate_metrix
Closed

allow to split metrix VM from slurm/database VM#535
mboisson wants to merge 1 commit into
ComputeCanada:mainfrom
mboisson:separate_metrix

Conversation

@mboisson

@mboisson mboisson commented Apr 2, 2026

Copy link
Copy Markdown
Member

@cmd-ntrf cmd-ntrf added this to the 15.5.0 milestone Apr 24, 2026
@cmd-ntrf cmd-ntrf modified the milestones: 15.5.0, 15.6.0 Jun 2, 2026
@cmd-ntrf cmd-ntrf modified the milestones: 15.6.0, 16.0.0 Jun 12, 2026
@cmd-ntrf

Copy link
Copy Markdown
Member

Superseded by PR #569.

To move metrix to another instance with PR #569, here is the required hieradata:

magic_castle::site::tags:
  metrix:
    - profile::metrix

mysql::server::override_options:
  mysqld:
    bind-address: "0.0.0.0"

metrix::slurm_db_ip: "%{lookup('terraform.tag_ip.mgmt.0')}"

profile::slurm::accounting::db_users:
  - username: "%{alias('metrix::slurm_user')}"
    password: "%{alias('metrix::slurm_password')}"
    privileges: ['SELECT']
    host: "%{lookup('terraform.tag_ip.metrix.0')}"

profile::reverse_proxy::subdomains:
  metrix: "http://%{lookup('terraform.tag_ip.metrix.0')}:9000"

@cmd-ntrf cmd-ntrf closed this Jun 15, 2026
@cmd-ntrf cmd-ntrf self-assigned this Jun 15, 2026
@mboisson

Copy link
Copy Markdown
Member Author
profile::slurm::accounting::db_users:
  - username: "%{alias('metrix::slurm_user')}"
    password: "%{alias('metrix::slurm_password')}"
    privileges: ['SELECT']
    host: "%{lookup('terraform.tag_ip.metrix.0')}"

A bit counter-intuitive that DB users are created by profile::slurm::accounting, isn't it ?

@cmd-ntrf

Copy link
Copy Markdown
Member

They are users with only access to Slurm database, so they are, Slurm database users, not general DB users per se.

It also not very different from what was proposed here:
https://github.com/ComputeCanada/puppet-magic_castle/pull/535/changes#diff-49baf3eee0715734dd8c01761adabe2e34412b2eacd882662958635dd5667b0cR320

@mboisson

Copy link
Copy Markdown
Member Author

Ah, I see, so in this PR, there are two DB servers running ? One for Slurm (on mgmt1), and one for Metrix, on the Metrix node ?

@cmd-ntrf

Copy link
Copy Markdown
Member

I would like at some point to have the ability of moving the database on a dedicated instance, but for now if slurmdbd and metrix are not on the same instance, they each get their own mariadb server.

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