Questo contenuto non è disponibile nella lingua selezionata.
3.2. Shared JDBC Master/Slave
Overview Copia collegamentoCollegamento copiato negli appunti!
- The shared database is a single point of failure. This disadvantage can be mitigated by using a database with built in high availability(HA) functionality. The database will handle replication and fail over of the data store.
- You cannot enable high speed journaling. This has a significant impact on performance.
Initial state Copia collegamentoCollegamento copiato negli appunti!
Figure 3.4. JDBC Master/Slave Initial State
After failure of the master Copia collegamentoCollegamento copiato negli appunti!
Figure 3.5. JDBC Master/Slave after Master Failure
Configuring the brokers Copia collegamentoCollegamento copiato negli appunti!
Example 3.3. JDBC Master/Slave Broker Configuration
Configuring the clients Copia collegamentoCollegamento copiato negli appunti!
broker1
, broker2
, and broker3
.
Example 3.4. Client URL for a Shared JDBC Master/Slave Group
failover:(tcp://broker1:61616,tcp://broker2:61616,tcp://broker3:61616)
failover:(tcp://broker1:61616,tcp://broker2:61616,tcp://broker3:61616)
Reintroducing a failed node Copia collegamentoCollegamento copiato negli appunti!
Figure 3.6. JDBC Master/Slave after Master Restart