Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for hostgroup_attributes for AWS Aurora auto-discovery #4279

Closed
wants to merge 18 commits into from

Conversation

JavierJF
Copy link
Collaborator

Feature

Now AWS Aurora makes use of hostgroup_attributes for being able to specify the following attributes for autodiscovered servers:

  • max_connections
  • use_ssl

The server option weight honors the configuration new_reader_weight from mysql_aws_aurora_hostgroups instead of the particular hostgroup attribute.

Fixes

On top of the described feature, this PR fixes several issues found with Aurora monitoring:

The following issue found with checksums computations:

Some of the previously described issues that also affected 'read_only' checks.

IMPORTANT: This PR is built on top of PR #4232, which should me merged first.

JavierJF added 18 commits May 8, 2023 20:27
 - Add support for autodiscovery for GR for MySQL8.
 - Allow to configure autodiscovered servers defaults via
   'mysql_hostgroup_attributes'.
 - Add support for GR autodiscovery for Cluster Simulator.
 - Improve server 'viable_candidate' detection for MySQL 8,
   'RECOVERING' state is now also considered.
…rvers

In case an autodiscovered server is found 'OFFLINE_HARD', the recovery
logic now properly updates the 'servers_defaults' values for the server,
in the same way as for a new discovered server.
Since the same 'AWS_Aurora_status_entry' index was being used for
computing the previous and current statuses, no difference was being
found, and no action taken.
When a writer is also placed in the reader hostgroup due to
'writer_is_also_reader', this new reader should also honor
'new_reader_weight'.
- Refactor of 'commit' checksums computation.
- Refactor update of 'AWS_Aurora_Hosts_resultset'.
- Fix invalid use of SHUNNED|SHUNNED_REPLICATION_LAG servers for
  checksum computation via 'MYSQL_SERVERS_CHECKSUM_QUERY'.
- Preserve old simulator behavior via 'TEST_AURORA_RANDOM' macro.
- Add new deterministic behavior for testing particular scenarios.
- Add support for simulating multiple clusters via an updated
  'REPLICA_HOST_STATUS' table and hostgroup based selection.
- Provide a sensible default population for manual testing.
@mirostauder
Copy link
Collaborator

retest this please

1 similar comment
@mirostauder
Copy link
Collaborator

retest this please

@renecannao
Copy link
Contributor

Closing become #4295 includes it , and it was merged

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.

3 participants