Openshift Container Platform 4.6 Scalability and Performance
Total Page:16
File Type:pdf, Size:1020Kb
OpenShift Container Platform 4.6 Scalability and performance Scaling your OpenShift Container Platform cluster and tuning performance in production environments Last Updated: 2021-09-22 OpenShift Container Platform 4.6 Scalability and performance Scaling your OpenShift Container Platform cluster and tuning performance in production environments Legal Notice Copyright © 2021 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/ . In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This document provides instructions for scaling your cluster and optimizing the performance of your OpenShift Container Platform environment. Table of Contents Table of Contents .C . H. .A . P. .T .E . R. 1.. .R . E. .C . O. .M . .M . .E . N. .D . E. .D . .P . R. .A . C. .T . I.C . E. .S . F. .O . R. I.N . .S .T . A. .L . L. I. N. .G . .L . A. .R . G. .E . .C . L. .U . S. T. .E . R. .S . 6. 1.1. RECOMMENDED PRACTICES FOR INSTALLING LARGE SCALE CLUSTERS 6 .C . H. .A . P. .T .E . R. 2. R. .E . C. .O . M. M. E. .N . D. .E . D. H. .O . .S .T . .P . R. .A . C. .T . I.C . E. .S . 7. 2.1. RECOMMENDED NODE HOST PRACTICES 7 2.2. CREATING A KUBELETCONFIG CRD TO EDIT KUBELET PARAMETERS 7 2.3. CONTROL PLANE NODE SIZING 10 2.4. RECOMMENDED ETCD PRACTICES 11 2.5. DEFRAGMENTING ETCD DATA 12 2.6. OPENSHIFT CONTAINER PLATFORM INFRASTRUCTURE COMPONENTS 15 2.7. MOVING THE MONITORING SOLUTION 15 2.8. MOVING THE DEFAULT REGISTRY 16 2.9. MOVING THE ROUTER 18 2.10. INFRASTRUCTURE NODE SIZING 19 2.11. ADDITIONAL RESOURCES 20 .C . H. .A . P. .T .E . R. 3. R. .E . C. .O . .M . M. E. .N . D. .E . D. C. .L . U. .S . T. .E .R . .S . C. .A . L. I. N. .G . .P . R. .A . C. .T . I.C . E. .S . 2. .1 . 3.1. RECOMMENDED PRACTICES FOR SCALING THE CLUSTER 21 3.2. MODIFYING A MACHINE SET 21 3.3. ABOUT MACHINE HEALTH CHECKS 22 3.3.1. MachineHealthChecks on Bare Metal 23 3.3.2. Limitations when deploying machine health checks 23 3.4. SAMPLE MACHINEHEALTHCHECK RESOURCE 24 3.4.1. Short-circuiting machine health check remediation 25 3.4.1.1. Setting maxUnhealthy by using an absolute value 26 3.4.1.2. Setting maxUnhealthy by using percentages 26 3.5. CREATING A MACHINEHEALTHCHECK RESOURCE 26 .C . H. .A . P. .T .E . R. 4. .U . S. .I N. .G . .T . H. .E . .N . O. D. .E . T. .U . N. .I .N . G. O. P. .E .R . A. .T . O. .R . .2 . 8. 4.1. ABOUT THE NODE TUNING OPERATOR 28 4.2. ACCESSING AN EXAMPLE NODE TUNING OPERATOR SPECIFICATION 28 4.3. DEFAULT PROFILES SET ON A CLUSTER 29 4.4. VERIFYING THAT THE TUNED PROFILES ARE APPLIED 30 4.5. CUSTOM TUNING SPECIFICATION 31 4.6. CUSTOM TUNING EXAMPLE 35 4.7. SUPPORTED TUNED DAEMON PLUG-INS 36 .C . H. .A . P. .T .E . R. 5. U. .S . I.N . .G . .C . L. .U . S. .T .E . R. L. .O . A. .D . E. .R . .3 . 8. 5.1. INSTALLING CLUSTER LOADER 38 5.2. RUNNING CLUSTER LOADER 38 5.3. CONFIGURING CLUSTER LOADER 38 5.3.1. Example Cluster Loader configuration file 39 5.3.2. Configuration fields 40 5.4. KNOWN ISSUES 43 .C . H. .A . P. .T .E . R. 6. .U . S. I. N. .G . .C . P. .U . .M . .A . N. .A . G. E. R. .4 .4 . 6.1. SETTING UP CPU MANAGER 44 .C . H. .A . P. .T .E . R. 7. U. .S . I.N . .G . .T . O. .P . O. L. O. G. .Y . .M . .A . N. .A . G. .E . R. .4 .9 . 7.1. TOPOLOGY MANAGER POLICIES 49 7.2. SETTING UP TOPOLOGY MANAGER 50 7.3. POD INTERACTIONS WITH TOPOLOGY MANAGER POLICIES 50 1 OpenShift Container Platform 4.6 Scalability and performance .C . H. .A . P. .T .E . R. 8. .S .C . A. .L . I.N . G. .T .H . .E . C. .L . U. .S . T. .E .R . .M . .O . .N . I.T . O. .R . I.N . G. .O . P. .E . R. .A . T. O. R. .5 . 2. 8.1. PROMETHEUS DATABASE STORAGE REQUIREMENTS 52 8.2. CONFIGURING CLUSTER MONITORING 53 .C . H. .A . P. .T .E . R. 9. .P .L . A. .N . N. I.N . G. Y. .O . .U . R. E. N. V. .I R. .O . N. .M . .E . N. .T . .A . C. .C . O. .R . D. .I .N . G. T. .O . O . .B . J. .E .C . T. M. A. .X . I.M . .U . M. S. .5 . 5. 9.1. OPENSHIFT CONTAINER PLATFORM TESTED CLUSTER MAXIMUMS FOR MAJOR RELEASES 55 9.2. OPENSHIFT CONTAINER PLATFORM TESTED CLUSTER MAXIMUMS 56 9.3. OPENSHIFT CONTAINER PLATFORM ENVIRONMENT AND CONFIGURATION ON WHICH THE CLUSTER MAXIMUMS ARE TESTED 58 9.4. HOW TO PLAN YOUR ENVIRONMENT ACCORDING TO TESTED CLUSTER MAXIMUMS 58 9.5. HOW TO PLAN YOUR ENVIRONMENT ACCORDING TO APPLICATION REQUIREMENTS 59 .C . H. .A . P. .T .E . R. 1.0 . .. O. P. .T .I M. I.Z . I.N . .G . .S . T. O. R. .A . G. .E . .6 . 3. 10.1. AVAILABLE PERSISTENT STORAGE OPTIONS 63 10.2. RECOMMENDED CONFIGURABLE STORAGE TECHNOLOGY 64 10.2.1. Specific application storage recommendations 64 10.2.1.1. Registry 65 10.2.1.2. Scaled registry 65 10.2.1.3. Metrics 65 10.2.1.4. Logging 66 10.2.1.5. Applications 66 10.2.2. Other specific application storage recommendations 66 10.3. DATA STORAGE MANAGEMENT 66 .C . H. .A . P. .T .E . R. 1.1 .. .O . P. .T . I.M . .I Z. .I N. .G . R . O. U. .T . I.N . G. ..