-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks,
I've had the following query from Brett, our sysadmin who currently is
in the process of migrating us off MySQL onto Galera (clustered MySQL
or derivative, in our case MariaDB as that seems to be what the
distros are replacing MySQL with). Forwarded with his permission.
However, it needs to have primary keys defined for all tables and this
is where Slurm has an issue with two tables in particulr, below are
his queries about working around this - can we get some feedback on
these please?
Thanks!
Chris
- -------- Original Message --------
Subject: Slurmdbd tables
Date: Tue, 17 Sep 2013 09:11:50 +1000
From: Brett Pemberton <
b...@unimelb.edu.au>
To: Christopher Samuel <
sam...@unimelb.edu.au>
Chris,
The situation:
We need all tables to have primary keys defined (for galera
replication). However slurm has two tables per cluster that don't have
primary keys:
mysql> describe avoca_last_ran_table;
+----------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+------------------+------+-----+---------+-------+
| hourly_rollup | int(10) unsigned | NO | | 0 | |
| daily_rollup | int(10) unsigned | NO | | 0 | |
| monthly_rollup | int(10) unsigned | NO | | 0 | |
+----------------+------------------+------+-----+---------+-------+
3 rows in set (0.00 sec)
mysql> describe avoca_suspend_table;
+------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+------------------+------+-----+---------+-------+
| job_db_inx | int(11) | NO | | NULL | |
| id_assoc | int(11) | NO | | NULL | |
| time_start | int(10) unsigned | NO | | 0 | |
| time_end | int(10) unsigned | NO | | 0 | |
+------------+------------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
I'm not familiar with the contents of the 'suspend' table, as ours are
all empty, but it could be that job_db_inx might be possible to make a
primary key, or if not, can an auto_increment id field be added and made
a primary key?
The 'last_ran' table only ever has one entry in it, the jobids that were
last ran, funnily enough.
So again, hourly_rollup could be made a primary key, or they could add
an 'id' field which will have the value of 1.
Is it possible for you to bring this up and get some feedback as to
whether this will be possible?
cheers,
/ Brett
- --
Brett Pemberton - Systems Administrator - VLSCI
- --
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email:
sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://www.enigmail.net/
iEYEARECAAYFAlI3/C8ACgkQO2KABBYQAh9UKACfZkMzD5JFKKH4mtfbOUZ/3LxF
0ekAnROTEC0eujdva6ZbgC9xVqZVYbtB
=0u+q
-----END PGP SIGNATURE-----