Update Agent to Enable Fatal Log Rotation
- Cloud Manager 에 대한 프로그래밍 방식의 액세스 를 위한 OAuth 2.0 인증 은 Preview 기능 으로 제공됩니다.
- 기능 및 해당 설명서는 미리 보기 기간에 언제든지 변경될 수 있습니다. OAuth 2.0 인증 을 사용하려면 Cloud Manager 공개 API 에 대한 요청에 사용할 서비스 계정을 만듭니다.
If you have upgraded the MongoDB Agent to 12.8 or later from 12.7 or earlier, you must manually reinstall your current MongoDB Agent version (12.8+) to enable fatal log file rotation.
For new installations of the MongoDB Agent (12.8+), fatal log file rotation is automatically enabled.
참고
Fatal log file rotation helps to maintain a
useful automation-agent-fatal.log
file by rotating the file on a
regular basis and deleting only the oldest logs.
Reinstall the MongoDB Agent
To reinstall the MongoDB Agent to enable fatal log file rotation, follow the procedure for your distribution:
Stop the MongoDB Agent.
Stop the MongoDB Agent using the appropriate command for your agent process.
If you started your agent process with systemd
, run the following
command:
sudo systemctl stop mongodb-mms-automation-agent.service
If you started your agent process with init.d
, run the following
command:
sudo service mongodb-mms-automation-agent stop
Reinstall the MongoDB Agent.
Use the installation instructions that apply to your MongoDB Agent use case:
If you use MongoDB Agent to manage deployments, follow the instructions to 배포서버 관리를 위한 MongoDB Agent 설치, or
If you use MongoDB Agent to only monitor or back up deployments, follow the instructions to 배포서버 모니터링 또는 백업 목적으로만 MongoDB Agent 설치.
At the top of the installation page, select
RHEL/CentOS/SLES/AMZ
and follow the procedure to install
the MongoDB Agent.
MongoDB Agent를 시작합니다.
Using your terminal, start the MongoDB Agent with the appropriate command for your system:
To start the agent process with systemd
, run the following
command:
sudo systemctl start mongodb-mms-automation-agent.service
To start the agent process with init.d
, run the following
command:
sudo service mongodb-mms-automation-agent start
The reinstalled MongoDB Agent rotates the automation-agent-fatal.log
file when the MongoDB Agent restarts or when the file reaches 100 MiB.
The MongoDB Agent retains the new automation-agent-fatal.log
file and five rotated logs.
Reinstall the MongoDB Agent.
Use the installation instructions that apply to your MongoDB Agent use case:
If you use MongoDB Agent to manage deployments, follow the instructions to 배포서버 관리를 위한 MongoDB Agent 설치, or
If you use MongoDB Agent to only monitor or back up deployments, follow the instructions to 배포서버 모니터링 또는 백업 목적으로만 MongoDB Agent 설치.
At the top of the installation page, select
Ubuntu/ Debian
and follow the procedure to install
the MongoDB Agent.
MongoDB Agent를 시작합니다.
Using your terminal, start the MongoDB Agent with the following command:
sudo systemctl start mongodb-mms-automation-agent.service
The reinstalled MongoDB Agent rotates the automation-agent-fatal.log
file when the MongoDB Agent restarts or when the file reaches 100 MiB.
The MongoDB Agent retains the new automation-agent-fatal.log
file and five rotated logs.
Reinstall the MongoDB Agent.
Use the installation instructions that apply to your MongoDB Agent use case:
If you use MongoDB Agent to manage deployments, follow the instructions to 배포서버 관리를 위한 MongoDB Agent 설치, or
If you use MongoDB Agent to only monitor or back up deployments, follow the instructions to 배포서버 모니터링 또는 백업 목적으로만 MongoDB Agent 설치.
At the top of the installation page, select
Linux
and follow the procedure to install
the MongoDB Agent.