14 Commits

Author SHA1 Message Date
Pete Birley
3cf9c4a64b MariaDB: Fronting proxy
This PS adds a fronting tcp proxy with A/P to the backends. This
Change removes the issue of DB deadlocks when using multi-master
galera databases.

Change-Id: I3294d4e9d9258a98692292fa5da16505bfa9ecd6
2018-05-09 10:50:43 -05:00
Chris Wedgwood
def513fcb2 mariadb: remove connect_timeout to fix mysqldump
Remove 'connect_timeout' which defined in the '[client]' section which
surprisingly affects mysqldump by causing it to fail as it doesn't
understand this; we're not doing anything that depends on having this
value so this is safe.

This now means mysqldump works (as expected) and we can use the
packaged/pod version of mysqldump for backup purposes.

Change-Id: I9142969e4b8576b19353c063586dd11f91875f0b
LocalWords:  mysqldump
2018-02-07 22:16:59 +00:00
portdirect
e0841eecde MariaDB: simplify db init process
This PS simplifys the db start and init script, increasing
robustness of the mariadb chart on low end hardware. It also
removes some unrequired annotations and moves to more explicit
qualification of the clustering variables.

Change-Id: I6cff5fb6ccfdcc6c82203b0e5eff445ee98bc298
2018-01-07 18:05:31 -05:00
Jenkins
198162a073 Merge "Fix some typos" 2017-09-03 04:47:48 +00:00
lidong
75a2639a48 Fix some typos
Correct some spelling errors in files : 
mariadb/templates/etc/_00-base.cnf.tpl,tools/gate/funcs/kube.sh


Change-Id: Ie6d7f2b90a8d569663452d00565af2789bbb377e
2017-08-08 03:39:06 +00:00
Pete Birley
ff8744a9b9 Licence: Remove licence header from rendered files
This PS removes the licence header from rendered output from tiller,
significantly reducing the configmap size of charts deployed to the
cluster.

Change-Id: I5d1b246f2068f3b83bf59ba79fe8b88bbc9a6161
2017-08-07 17:16:13 -05:00
Pete Birley
e7abfee16d MariaDB: Update start script to be more robust
This PS updates the MariaDB start script remove templated values
from being directly inserted into the script. It also moves the
root connection params to a secret to prevent the root password
being exposed in logs.

Change-Id: I10977ef267877a5913bf265280ff5439c7bf268c
2017-07-29 23:05:20 +00:00
Pete Birley
8ff8e7aeb2 Mariadb: Update to use endpoint values layout and lookups
This PS adjusts the MariaDB chart to use the same endpoint values
layout as used in other openstack-helm components. It also removes
credentials and params from the configmaps and moves them to secrets
and env vars as appropriate.

Change-Id: I9116be7c46cdd16c743ca2784878f3de65665f8c
2017-07-03 13:17:48 +00:00
Mark Burnett
de20cbb15d Use the standard Dockerhub MariaDB image
Addresses consistency issues that appear with autoincrement fields in
the existing chart, as demonstrated in [1].  It should allow automatic
recovery of 2 out of the 3 (default) cluster members.

It does not address automatic recovery of a complete shutdown of all
cluster nodes.

[1] https://review.openstack.org/#/c/465977/

Change-Id: I84c86e1862f03a6d381bf219b821ea3636049f0b
2017-05-25 08:56:35 -05:00
Chris Wedgwood
8b07ffa2d1 Simplify/lessen requirements for MariaDB
Change-Id: Ic0159fc38f9551c60ae588ab2d78944fb61239e2
2017-05-23 23:41:59 +00:00
Pete Birley
1f536fee87 MariaDB: Log and buffer pool default size reduction
This PS reduces the default log and buffer size.

Change-Id: If789064424bfbaba7a427f9bbfe6f3a64e954fdf
Closes-Bug: #1688058
2017-05-05 10:32:44 -05:00
Seungkyu Ahn
d4f7fa5775 Add galera sync method option
Galera has a copule of options to sync mariadb cluster.
Default value is mysqldump which is slow, except for small data-sets, but is the most tested option.
rsync option is much faster than mysqldump on large data-sets.
So add --wsrep_sst_method value.

Change-Id: Ide03801b2472fa3d4f76bbe32e75bf6e618ac7e1
2017-04-24 02:07:19 +09:00
Brandon B. Jozsa
a5c2e9d489 adding apache-lic header for mariadb 2017-02-03 10:24:31 -05:00
Alan Meadows
0ca1a7942e Refactor mariadb chart
This is a major refactor of the mariadb chart.  A few things
are accomplished:

* The chart template layout is updated to match our keystone
chart, providing a more structure to the chart.

* The chart was updated to leverage StatefulSets, which requires
Kubernetes 1.5, and helm 2.1.0.

* The bootstrapping process was completely overhauled to support
the unique constraints of statefulsets, namely that they come up
one by one, needing the previous to be in a ready state before
the next is provisioned.

* The references to {{ .IP }} we removed and replaced with POD_IP
environmental passing and address binding was fixed in several
places for wsrep functionality.  This may explain several oddities
with the previous setup causing mysterious and intermittent
database consistency issues.
2016-12-15 17:20:47 -08:00