Closed tsorya closed 1 month ago
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
@tsorya: This pull request references MGMT-17652 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.17.0" version, but no target version was set.
@hexfusion: changing LGTM is restricted to collaborators
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: donpenney, hexfusion
The full list of commands accepted by this bot can be found here.
The pull request process is described here
thanks @hexfusion @tsorya
Background / Context
When reconfiguring a seed image, we have to perform a lot of etcd delete operations. This leaves etcd is a fragmented state, which could possibly harm its performance when its later actually used for OCP and thus lengthen the IBX duration. Running defrag command allows us to minimize defrag state in etcd db as example
Without running defrag on seed i got 68% if difference between db size and size in use
[root@seed core]# oc exec etcd-seed -c etcd -n openshift-etcd -- etcdctl endpoint status --cluster -w json | jq '.[].Status|"dbSize: " + (.dbSize|tostring) + ", dbSizeInUse: " + (.dbSizeInUse|tostring) + ", (dbSize-dbSizeInUse)/dbSize => " + ((.dbSize - .dbSizeInUse)/.dbSize*100|tostring)+"%"' "dbSize: 107253760, dbSizeInUse: 33562624, (dbSize-dbSizeInUse)/dbSize => 68.70727515753295%"
With running defrag on seed creation , i got 0% difference[root@seed core]# oc exec etcd-seed -c etcd -n openshift-etcd -- etcdctl endpoint status --cluster -w json | jq '.[].Status|"dbSize: " + (.dbSize|tostring) + ", dbSizeInUse: " + (.dbSizeInUse|tostring) + ", (dbSize-dbSizeInUse)/dbSize => " + ((.dbSize - .dbSizeInUse)/.dbSize*100|tostring)+"%"' "dbSize: 83079168, dbSizeInUse: 83079168, (dbSize-dbSizeInUse)/dbSize => 0%"
Issue / Requirement / Reason for change
Solution / Feature Overview
Running etcd defrag command after running recert on seed creation
Implementation Details
Other Information