/
Others :Database Maintenance

Others :Database Maintenance

Table Of Content

Prerequisite:

  1. Take the downtime from the client.

  2. Pause the scheduler 

  3. Scale down the webrunner pod.

  4. Run the below query to identify the free space in the Database.

SELECT table_schema "DataBase Name", 

sum( data_length + index_length ) / 1024 / 1024 "Database Size in MB", 

sum( data_free )/ 1024 / 1024 "Free Space in MB" 

FROM information_schema.TABLES GROUP BY table_schema;

  1. Refer the below link for the table for which we have to perform cleanup 

https://support.adeptia.com/hc/en-us/articles/207881923-Truncate-Log-Tables-Manually

  1. Run the optimize query “OPTIMIZE TABLE tablename;” This query will create a lock on the table and then create a new table with the same name and same data.

 

Post maintenance:

  1. Run the above query (point4) to verify the free space

  2. Scale up the webrunner pod

  3. Resume the scheduler

  4. Drop confirmation email to client.

Monitoring CPU and Memory Utilization Trend:

  1. Login into the Client grafana.

  2. Navigate to the dashboard and select  kubernetes-compute-resources-namespace-pods dashboard.

  3. Verify the CPU trend.

Monitoring Disk Utilization Trend:

  1. Login into the Client grafana.

  2. Navigate to the dashboard and select kubernetes-persistent-volumes dashboard.

  3. Verify the Disk utilization trend.

Log and Archival Cleanup Review:

  1. Login into environment of each customer

  2. Navigate to the system console page and verify the cleanup

Certificate Expiry:

  1. Take the backup of the cacert file.from below location

  2. Place the new cert in the same location

  3. Run the below command to add the new certificate in the cacert

keytool -import -trustcacerts -alias BOSAPIProdCert -file "D:\BOS\certs\16_may_2023\apim.sfs.operations.dynamics.com_prod.crt" -keystore "D:\BOS\certs\16_may_2023\cacerts"

  1. Restart the webrunner and runtime microservices.

License Expiry:

  1. We receive mail notification 1 month prior to license expiration.

  2. Get the latest license from Gaurav Gautam.

  3. Place the latest license into the /shared/license   location

  4. Restart the license pod.

Regency patch upgrade:

  1. Login into the regency environment using a remote desktop.

  2. Scale down the webrunner and kernel

  3. Navigate to windows update.

  4. Click on update and restart the windows

  5. Verify again if any other updates are pending

  6. Once Windows is uptodate.

  7. Restart the kernel and webrunner.

Related content

Application Health Check and Scheduled Maintenance
Application Health Check and Scheduled Maintenance
More like this
Application Monitoring: Database Maintenance
Application Monitoring: Database Maintenance
More like this
Grafanna- Dashboard
More like this
MySQL Storage Maintenance
MySQL Storage Maintenance
More like this
Others: Grafana Upgrade
Others: Grafana Upgrade
More like this