Question 1
The NoSQL KVStore experiences a node failure. One of the replicas is promoted to primary.
How will the NoSQL client that accesses the store know that there has been a change in the architecture?
The KVLite utility updates the NoSQL client with the status of the master and replica.
KVStoreConfig sends the status of the master and replica to the NoSQL client.
The NoSQL admin agent updates the NoSQL client with the status of the master and replica.
The Shard State Table (SST) contains information about each shard and the master and replica status for the shard.
Correct answer: D
Explanation:
Given a shard, the Client Driver next consults the Shard State Table (SST). For each shard, the SST contains information about each replication node comprising the group (step 5). Based upon information in the SST, such as the identity of the master and the load on the various nodes in a shard, the Client Driver selects the node to which to send the request and forwards the request to the appropriate node. In this case, since we are issuing a write operation, the request must go to the master node. Note: If the machine hosting the master should fail in any way, then the master automatically fails over to one of the other nodes in the shard. That is, one of the replica nodes is automatically promoted to master.References: http://www.oracle.com/technetwork/products/nosqldb/learnmore/nosql-wp-1436762.pdf
Given a shard, the Client Driver next consults the Shard State Table (SST). For each shard, the SST contains information about each replication node comprising the group (step 5). Based upon information in the SST, such as the identity of the master and the load on the various nodes in a shard, the Client Driver selects the node to which to send the request and forwards the request to the appropriate node. In this case, since we are issuing a write operation, the request must go to the master node.
Note: If the machine hosting the master should fail in any way, then the master automatically fails over to one of the other nodes in the shard. That is, one of the replica nodes is automatically promoted to master.
References: http://www.oracle.com/technetwork/products/nosqldb/learnmore/nosql-wp-1436762.pdf