Monitor Progress of an Active Standby Pair Deployment
You can use various kubectl
commands to monitor the progress of the active standby pair deployment. After the deployment is complete and successful, you can connect to the database and run operations in it to verify it is working as it should.
Monitor the State of a TimesTenClassic Object
Use the kubectl
get
and the kubectl
describe
commands to monitor the progress of the active standby pair as it is provisioned.
Note:
For the kubectl
get
timestenclassic
and kubectl
describe
timestenclassic
commands, you can alternatively specify kubectl
get
ttc
and kubectl
describe
ttc
respectively. timestenclassic
and ttc
are synonymous when used in these commands, and return the same results. The first kubectl
get
and the first kubectl
describe
examples in this chapter use timestenclassic
. The remaining examples in this book use ttc
for simplicity.
Your active standby pair of TimesTen databases are successfully deployed (as indicated by Normal
.) There are two TimesTen databases, configured as an active standby pair. One database is active. (In this example, sample-0
is the active database, as indicated by Rep
State
ACTIVE
). The other database is standby. (In this example, sample-1
is the standby database as indicated by Rep
State
STANDBY
). The active database can be modified and queried. Changes made on the active database are replicated to the standby database. If the active database fails, the Operator automatically promotes the standby database to be the active. The formerly active database will be repaired or replaced, and will then become the standby.
Verify Underlying Objects Exist
The Operator creates other underlying objects automatically. Verify that these objects are created.
Verify Connection to Active Database
You can run the kubectl
exec
command to invoke shells in your Pods and control TimesTen, which is running in those Pods. By default, TimesTen runs in the Pods as the timesten
user. Once you have established a shell in the Pod, verify you can connect to the sample
database, and that the information from the metadata files is correct. You can optionally run queries against the database or any other operations.