Commit Graph

23 Commits

Author SHA1 Message Date
Peter Matulis 4335d0b525 Improve deprecation text
This improves the messaging surrounding the
deprecation of this charm.

Fix links.

The removed upstream links will be placed in the
linked CDG resource (on upgrading to non-focal
series).

Change-Id: I6c00fa9f452583cdf5072938e57b4cf611a3115f
2020-12-16 12:57:51 -05:00
Robert Gildein 11ee1ef563 NRPE: Monitor threads connected to MySQL.
Add a NRPE check to monitor the number of threads connected
to the MySQL database, in proportion to the maximum number of connections.
For this check, a nagios user will be created. This user does not have any
permissions set, does not have access to any database and can only connect
from localhost.
Warning and Critical thresholds (in percentage) can be configured.

Add an action to reset nagios's password. This action could only be run
on the leader unit.

Closes-Bug: #1816759
Change-Id: Id35b0331322c2744a9f839b3eb153eed1bc53aac
2020-11-27 14:50:02 +00:00
Peter Matulis bf6cecd936 Move cold boot section to CDG
Also move the section up the page to reflect
its importance.

Depends-on: Ic7ad2622b6aa3c8ae8821a8f5f531534d8cfb3d6
Change-Id: I31ba8a968cd7f42d639e1843e66714dbd0a067aa
2020-11-11 15:40:44 -05:00
Peter Matulis eedd374fa1 Remove series upgrade steps
The information provided in the CDG is now favoured.

Change-Id: I0f90c4fc9d1928579fc538bfea87e01aa23e6311
2020-05-26 14:44:01 -04:00
Peter Matulis f358ca92d9 Enhance README and add eoan EOL
Change-Id: Ie4ee24218aeb8e4954f68aaaf26924db04193549
2020-05-20 18:20:27 -04:00
Peter Matulis 2f69eeb003 Format based on README template
This is a move towards a more standardised README.

The Series Upgrade section should probably eventually
be moved to the series-upgrade appendix in the CDG.

Change-Id: I9ca724dc9b3db02dc32f6462f5e24cc453d0dd3e
2020-05-14 15:41:08 -04:00
Alex Kavanagh 15e5042854 Ensure PROCESS perm for sstuser on series-upgrade
This patch ensures that the PROCESS permission is added to the sstuser
user during a series upgrade from xenial to bionic.  Also patches the
README to correct some of the commands in terms of order of parameters.

Change-Id: I8ddc21e3914e3da0f64ffcedef7a6a4bb18ba4cb
Closes-Bug: #1838044
2019-12-11 16:22:04 +00:00
Zuul 0caf06b88d Merge "Fix example command to use spaces" 2019-08-20 20:42:30 +00:00
Peter Matulis bd12b35b80 use indentation instead of backticks - driveby formatting and minor fixes
Change-Id: I3a548d7941084f862d40ccdbb59f5d4706557432
2019-08-02 11:10:01 -04:00
David Ames 6dae76f34b Cold start actions documentation
Change-Id: I71ce23d91f87db81f6cc4896c87e77e27bccd394
2019-07-18 16:25:07 -07:00
Felipe Reyes cbb4de49e9 Fix example command to use spaces
Change-Id: Ied2d43d2825b23549b3fd51b65d6ff29c4888e69
2019-05-30 09:59:54 -04:00
Tytus Kurek e116b1ef86 MySQL asynchronous replication
This patchset implements new relations: "master" and "slave" based
on a common "mysql-async-replication" interface which are used for
the purpose on enabling MySQL asynchronous replication between
multiple Percona XtraDB Clusters.

Change-Id: I94710bff17091516875c81ca769d8078ef5efd10
Closes-Bug: 1776171
2018-12-12 23:30:41 +01:00
David Ames fe131a0aa6 Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: If38bf1767c8e0c9242071140535b44e12c9f9759
2018-09-17 15:38:00 +02:00
Ryan Beisner 5f90ad4ca6 Clarify dns-ha and access binding usage as implemented
Change-Id: I699611b529f3cddc9d76028219f913ec1391d6f5
Partial-Bug: #1759356
Related-Bug: #1756988
2018-04-23 18:03:12 +00:00
James Page 60e58482f6 Improve password management for clustered deploys
In the past, its mandatory to provide the sst and root password
configuration options for clustered deployments to ensure consistent
use of passwords across the cluster from install onwards.

Rework password management and install process to seed passwords
from the lead unit if not supplied via configuration options.

Following units will defer installation until the leader has
stored this information in leader storage for retrieval by
followers.

Closes-Bug: 1454317

Change-Id: I5ab70cae78ed35322bf60048af841de071a69704
2017-03-08 10:07:52 +00:00
James Page cd888ce03c Improve network space documentation
Include details of cluster and shared-db endpoint binding
options for Juju 2.0 network space support.

The 'access' extra-binding should be replaced with the actual
shared-db endpoint binding, so skipping that from the docs
for now.

Change-Id: Ied2628491391fd05126007458dc7acaa268276a8
Closes-Bug: 1654264
2017-03-02 12:36:04 +00:00
Jenkins 98926e439d Merge "Wait until clustered before running client hooks" 2017-02-14 19:24:57 +00:00
David Ames 58d3641dee Wait until clustered before running client hooks
Percona cluster takes some time to fully cluster. The charm was
previously running shared-db-relation-changed hooks whenever they
were queued even if the cluster was not yet complete. This may lead
to split brain scenarios or unexpected behavior.

This change confirms the entire cluster is ready before running
client shared-db-relation-changed hooks.

min-cluster-size can now be used to attempt to guarantee the cluster
is ready with the expected number of nodes. If min-cluster-size is
not set the charm will still determine based on the information
available if all the cluster nodes are ready. Single node
deployments are still possible.

Partial-Bug: #1655417
Change-Id: Ie9deb266a9682e86f3a9cbc1103b655b13a8295e
2017-02-14 07:44:41 -08:00
Anh Tran 7552fb13bf Typo fix: minimium => minimum
Change-Id: Ie89a60bf46d3e759dd56df6cbf255033c37560bf
2017-02-06 10:55:09 +07:00
David Ames e47c4ad135 Default performance schema to off
The 5.6 version of mysql defauls to performance_schema=on at server
startup. This allocates all the memory that would be required to
handle max-connections plus several other memory settings.

We occasionally saw connection exhaustion in HA clouds with
max-connections near 2000. The common practice became to set
max-connections unrealistically high near 10k or 20k. In the move to
5.6 on Xenial this became a problem as the memory requirements for
values that high are unrealistic.

This change adds performance schema as a configuration option and
defaults to off giving 5.5 like behavior. It also considerably
updates documentation and highlights the need to carefully consider
memory related configuration settings for production environments.

Make the amulet test python2 and python3 capable.

Change-Id: Id01095ac2f73fa041b25b2602496a4c04a13e3ef
Partial-Bug: #1654086
Closes-Bug: #1600001
2017-01-09 13:59:24 -08:00
David Ames 7f3cfab538 DNS HA
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.

Charm-helpers sync to bring in DNS HA helpers

Change-Id: I2d9e2b92b0ebf33dc2f62327df6edbfd1e81dcca
2016-07-13 16:16:52 -07:00
James Page 9e632ba1d6 Add Juju Network Space support
Juju 2.0 provides support for network spaces, allowing
charm authors to support direct binding of relations and
extra-bindings onto underlying network spaces.

Resync charm-helpers to pickup support for new charm hook
tools.

Update get_db_host function to attempt to use the network
space support with appropriate fallback if on an older
Juju version.

Add some unit tests to cover the new support.

Change-Id: I28ae4beab5329eb69baddce5715b7f049af65b06
2016-03-31 16:59:01 +01:00
James Page b7852419d1 Add README 2013-09-19 16:57:31 +01:00