Hi all,
Meanwhile I have read up a lot, and still hope someone here can reply and explain.
There are places that say "DROP DATABASE" is excluded from galera replication, and these have to be done on each node separately and manually, but ther are also places that say it *IS* replicated.
However: "CREATE DATABASE" is commonly said to be replicated to the other nodes, were as we observed that it did NOT. We had to CREATE DATABASE on each node.
Once the new database was created, contents (TABLES) of that new
database WERE replicated successfully.
All of this is happening on rhel8.9, mariadb 10.5.22, and the
galera cluster is showing healthy, the three nodes are "synced",
cluster_size = 3, they share the same wsrep_cluster_name, etc,
etc. Node reboots result in successful IST's, we have performed
successful SST's, etc. All in all the cluster is functioning and
behaving very well.
We really hope for some insights of how this is supposed to work from the mailinglist!
I guess this output helps, from one of the nodes:
MariaDB [(none)]> show status like
'wsrep_%';
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name |
Value
|
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| wsrep_local_state_uuid |
470cef5b-f0ca-11ee-ab68-87cd9b53c729
|
| wsrep_protocol_version |
10
|
| wsrep_last_committed |
41921937
|
| wsrep_replicated |
7
|
| wsrep_replicated_bytes |
2680
|
| wsrep_repl_keys |
12
|
| wsrep_repl_keys_bytes |
264
|
| wsrep_repl_data_bytes |
1950
|
| wsrep_repl_other_bytes |
0
|
| wsrep_received |
8208123
|
| wsrep_received_bytes |
47764240283
|
| wsrep_local_commits |
2
|
| wsrep_local_cert_failures |
0
|
| wsrep_local_replays |
0
|
| wsrep_local_send_queue |
0
|
| wsrep_local_send_queue_max |
1
|
| wsrep_local_send_queue_min |
0
|
| wsrep_local_send_queue_avg |
0
|
| wsrep_local_recv_queue |
0
|
| wsrep_local_recv_queue_max |
114
|
| wsrep_local_recv_queue_min |
0
|
| wsrep_local_recv_queue_avg |
0.00758419
|
| wsrep_local_cached_downto |
41080804
|
| wsrep_flow_control_paused_ns |
47828550454
|
| wsrep_flow_control_paused |
6.24912e-05
|
| wsrep_flow_control_sent |
1
|
| wsrep_flow_control_recv |
29
|
| wsrep_flow_control_active |
false
|
| wsrep_flow_control_requested |
false
|
| wsrep_cert_deps_distance |
15.5805
|
| wsrep_apply_oooe |
0.0373219
|
| wsrep_apply_oool |
0.00186536
|
| wsrep_apply_window |
1.04028
|
| wsrep_apply_waits |
594
|
| wsrep_commit_oooe |
0
|
| wsrep_commit_oool |
0
|
| wsrep_commit_window |
1.02563
|
| wsrep_local_state |
4
|
| wsrep_local_state_comment |
Synced
|
| wsrep_cert_index_size |
809
|
| wsrep_causal_reads |
0
|
| wsrep_cert_interval |
1882.9
|
| wsrep_open_transactions |
0
|
| wsrep_open_connections |
0
|
| wsrep_incoming_addresses |
1.2.3.103:0,1.2.3.112:0,1.2.3.100:0
|
| wsrep_cluster_weight |
3
|
| wsrep_desync_count |
0
|
| wsrep_evs_delayed
|
|
| wsrep_evs_evict_list
|
|
| wsrep_evs_repl_latency |
0.000562427/0.000562427/0.000562427/0/1
|
| wsrep_evs_state |
OPERATIONAL
|
| wsrep_gcomm_uuid |
8e50abd0-0d38-11ef-ba95-dfec4a163b8a
|
| wsrep_gmcast_segment |
0
|
| wsrep_applier_thread_count |
4
|
| wsrep_cluster_capabilities
|
|
| wsrep_cluster_conf_id |
187
|
| wsrep_cluster_size |
3
|
| wsrep_cluster_state_uuid |
470cef5b-f0ca-11ee-ab68-87cd9b53c729
|
| wsrep_cluster_status |
Primary
|
| wsrep_connected |
ON
|
| wsrep_local_bf_aborts |
0
|
| wsrep_local_index |
0
|
| wsrep_provider_capabilities |
:MULTI_MASTER:CERTIFICATION:PARALLEL_APPLYING:TRX_REPLAY:ISOLATION:PAUSE:CAUSAL_READS:INCREMENTAL_WRITESET:UNORDERED:PREORDERED:STREAMING:NBO:
|
| wsrep_provider_name |
Galera
|
| wsrep_provider_vendor | Codership Oy
<in...@codership.com>
|
| wsrep_provider_version |
26.4.14(rXXXX)
|
| wsrep_ready |
ON
|
| wsrep_rollbacker_thread_count |
1
|
| wsrep_thread_count |
5
|
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
Many thanks in advance for insights!
--
You received this message because you are subscribed to the Google Groups "codership" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codership-tea...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codership-team/59536d52-09b8-4cd5-b4ae-74acb8fda1d4n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codership-team/a78779bf-8275-4641-9007-13c8873ca32a%40gmail.com.
Dear Jan and Wayne, and others as well.
We have found our issue.
Our galera cluster was also acting as an 'old style' (i know it's
not old) master/slave replication source, and therefore our
/etc/my.cnf contained the following lines: (obviously NOT YET
commented out)
server-id=UNIQUE_NUMBER
#log_bin = /data/mysql/mysql-bin.log
#binlog_do_db = db1
#binlog_do_db = db2
#replicate-do-db = db1
#replicate-do-db = db2
#relay_log = /data/mysql/mysql-relay.log
With the above 7 lines uncommented, no "CREATE DATABASE xxx;" was
ever replicated, we tried both db names (db1 / db2) from the
config, but also new unique db names.
But here it comes: after commenting out as above, only leaving
"server-id=UNIQUE_NUMBER", restarting mariadb, everything started
working immediately:
# CREATE DATABASE TEST1;
immediately showed up at the other hosts.
But of course, removing these lines will break replication to the
old-style slave. :-(
For us, the side effect of those 6 lines was completely
unexpected..? But perhaps that's just our stupidity?
MJ
We are puzzled, and really unsure if our cluster IS in fact
"synced" or not...
Anyone..?
--
You received this message because you are subscribed to the Google Groups "codership" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codership-tea...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codership-team/0376c0c5-ff70-490d-aa0c-ab1e7c5b3dden%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "codership" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codership-tea...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codership-team/d99bfb01-f28d-438c-9f6b-ead32b43b4fe%40gmail.com.