VM에서 AlloyDB Omni를 실행하는 환경의 postgresql.conf 파일입니다.
Kubernetes 클러스터에서 AlloyDB Omni를 실행하는 환경의 데이터베이스 클러스터 매니페스트입니다.
컨테이너화된 AlloyDB Omni에서 매개변수 업데이트
VM에서 실행되는 AlloyDB Omni에서는 다음과 같이 postgresql.conf 파일을 수정하여 매개변수를 업데이트할 수 있습니다.
AlloyDB Omni 설치의 postgresql.conf 구성 파일을 찾습니다.
텍스트 편집기를 사용하여 postgresql.conf에서 데이터베이스 플래그를 추가하거나 업데이트합니다.
예를 들어 비밀번호 만료를 적용하려면 postgresql.conf 파일에서 다음 플래그를 설정합니다.
password.enforce_expiration=ON
데이터베이스 플래그를 추가하거나 수정한 후 변경사항이 적용되도록 postgresql.conf 파일을 새로고침합니다. 예를 들어 Docker를 사용하여 AlloyDB Omni을 설치한 경우 다음을 실행하여 Docker 인스턴스를 다시 시작하고 postgresql.conf를 새로고침합니다.
일부 매개변수는 변경사항이 적용되도록 클러스터를 다시 시작해야 합니다. pg_catalog.pg_settings에서 다시 시작이 필요한 매개변수 목록을 가져올 수 있습니다. pg_catalog.pg_settings.context = 'postmaster'가 있는 매개변수의 경우 다시 시작해야 합니다.
AlloyDB Omni에서 데이터베이스 클러스터 매니페스트에서 요청한 매개변수를 적용할 수 없는 경우 currentParameters 필드의 값이 매니페스트의 parameters 필드의 값과 다를 수 있습니다. 예를 들어 존재하지 않는 매개변수를 적용하거나 문자열 값을 정수 매개변수로 설정합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-11(UTC)"],[[["\u003cp\u003eAlloyDB Omni database parameters can be configured by updating Grand Unified Configuration (GUC) parameters via the \u003ccode\u003epostgresql.conf\u003c/code\u003e file or the database cluster manifest.\u003c/p\u003e\n"],["\u003cp\u003eIn a VM environment, edit the \u003ccode\u003epostgresql.conf\u003c/code\u003e file to add or update parameters, and then reload the file for changes to take effect, for instance by restarting the container if using Docker.\u003c/p\u003e\n"],["\u003cp\u003eWhen running AlloyDB Omni on a Kubernetes cluster, database parameters are set using the \u003ccode\u003eparameters\u003c/code\u003e field within the \u003ccode\u003eprimarySpec\u003c/code\u003e section of the database cluster manifest.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a parameter on Kubernetes requires to run a \u003ccode\u003ekubectl patch\u003c/code\u003e command with the parameter name and value, and some parameter changes necessitate a cluster restart.\u003c/p\u003e\n"],["\u003cp\u003eTo verify parameter settings on Kubernetes, you can utilize the \u003ccode\u003ekubectl get\u003c/code\u003e command to check the \u003ccode\u003ecurrentParameters\u003c/code\u003e field in the \u003ccode\u003estatus\u003c/code\u003e section of the database cluster, and if a parameter is not correct it will differ from the manifest.\u003c/p\u003e\n"]]],[],null,[]]