2.3. HCP를 사용하여 ROSA의 노드 튜닝 구성 수정
ROSA(Red Hat OpenShift Service on AWS) CLI, rosa 를 사용하여 노드 튜닝 구성을 보고 업데이트할 수 있습니다.
사전 요구 사항
- ROSA CLI의 최신 버전을 다운로드했습니다.
- 최신 버전에 클러스터가 있어야 합니다.
- 클러스터에 노드 튜닝 구성이 추가되어 있습니다.
절차
rosa describe명령을 사용하여 튜닝 구성을 확인합니다.$ rosa describe tuning-config -c <cluster_id> 1 --name <name_of_tuning> 2 [-o json] 3
이 사양 파일의 다음 항목은 다음과 같습니다.
출력 유형을 지정하지 않은 샘플 출력
Name: sample-tuning ID: 20468b8e-edc7-11ed-b0e4-0a580a800298 Spec: { "profile": [ { "data": "[main]\nsummary=Custom OpenShift profile\ninclude=openshift-node\n\n[sysctl]\nvm.dirty_ratio=\"55\"\n", "name": "tuned-1-profile" } ], "recommend": [ { "priority": 20, "profile": "tuned-1-profile" } ] }JSON 출력을 지정하는 샘플 출력
{ "kind": "TuningConfig", "id": "20468b8e-edc7-11ed-b0e4-0a580a800298", "href": "/api/clusters_mgmt/v1/clusters/23jbsevqb22l0m58ps39ua4trff9179e/tuning_configs/20468b8e-edc7-11ed-b0e4-0a580a800298", "name": "sample-tuning", "spec": { "profile": [ { "data": "[main]\nsummary=Custom OpenShift profile\ninclude=openshift-node\n\n[sysctl]\nvm.dirty_ratio=\"55\"\n", "name": "tuned-1-profile" } ], "recommend": [ { "priority": 20, "profile": "tuned-1-profile" } ] } }튜닝 구성을 확인한 후
rosa edit명령을 사용하여 기존 구성을 편집합니다.$ rosa edit tuning-config -c <cluster_id> --name <name_of_tuning> --spec-path <path_to_spec_file>
이 명령에서는
spec.json파일을 사용하여 구성을 편집합니다.
검증
rosa describe명령을 다시 실행하여spec.json파일에 대한 변경 사항이 튜닝 구성에서 업데이트되었는지 확인합니다.$ rosa describe tuning-config -c <cluster_id> --name <name_of_tuning>
샘플 출력
Name: sample-tuning ID: 20468b8e-edc7-11ed-b0e4-0a580a800298 Spec: { "profile": [ { "data": "[main]\nsummary=Custom OpenShift profile\ninclude=openshift-node\n\n[sysctl]\nvm.dirty_ratio=\"55\"\n", "name": "tuned-2-profile" } ], "recommend": [ { "priority": 10, "profile": "tuned-2-profile" } ] }