...
- Analysed the CPU and Memory utilisation at the granular level (Cluster, Nodes and PODs) and submitted the report to the customer and requested approval to increase the memory by resizing the cluster nodes from M4.large to M4.xlarge which will double the memory. Considering the facts customer agreed to proceed with the resizing activity and provided approval to implement immediately to mitigate the latency.
- Apparently we also analysed the long running DB queries using Jaeger (Distributed Tracing) across services and fixed the queries by adding more indexes and query optimisation.
- Upon the peak memory utilisation of all the existing nodes in punjab cluster and implementation team's demand to match the need of the load, had to resize the cluster by adding better nodes in accordance to customer approval & Demand.
- Punjab cluster resizing activity, causing customer dashboard to loose its visualisation and dashboard.
- While there was a peak load, the DB was bottleneck due to long running queries that cascaded into APIs and the system was slow.
- We had to fix the queries
Retrospective
...
CLUSTER:
...
What did we do:
- Taken approval from the customer for the downtime of an hour and half to resize the cluster from m4.large instances to m4.xlarge. This activity required rolling update of all the services which is a default behaviour as all the pods will be drained from the existing nodes and be scheduled it on the newly provisioned nodes.
- Tested the DB query changes on UAT with the prod dump and upon seeing the improvement, pushed the DB query changes to production which resulted in great performance improvements.
Impact of overall activity:
What went well:
- DB query execution time got improved from ~30 sec to ~2 Sec, this resulted in great performance improvement at every service level also as a whole system.
- End result on solving the memory availability was successful, All the pods of our services were having sufficient memory to handle the peak traffic.
- During the cluster update, all egov services and infra services like kafka, zookeeper, redis were back up and running
...
- successfully.
What went wrong:
- Since the es-cluster not being configured for true HA, during the rolling update it had possibly entered a split brain scenario and pods were not starting, while we try recovering the critical data eventually resulted in corrupting the ES kibana index. which resulted in loosing the kibana visualisation.
- We were able to recover the entire cluster without impact to any of the data indices but the kibana index hosting the dashboards and visualisations was beyond recovery.
- These dashboards and visualisations were unfortunately different
...
- from UAT to do a simple promotion nor were they stored in source control for an easy restore.
DB:
...
- We fixed DB response times across all modules by identifying long running queries via Jaeger, a distributed tracing system.
...
Retrospective
Info |
---|
|
Start doing | Stop doing | Keep doing |
---|---|---|
|
|
|
...