Este contenido no está disponible en el idioma seleccionado.
3.2. Shared JDBC Master/Slave
Overview Copiar enlaceEnlace copiado en el portapapeles!
- 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 Copiar enlaceEnlace copiado en el portapapeles!
Figure 3.4. JDBC Master/Slave Initial State
After failure of the master Copiar enlaceEnlace copiado en el portapapeles!
Figure 3.5. JDBC Master/Slave after Master Failure
Configuring the brokers Copiar enlaceEnlace copiado en el portapapeles!
Example 3.3. JDBC Master/Slave Broker Configuration
Configuring the clients Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
Figure 3.6. JDBC Master/Slave after Master Restart