Docs Menu
Docs Home
/
MongoDB Ops Manager
/ /

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง ํ™œ์„ฑํ™”

์ด ํŽ˜์ด์ง€์˜ ๋‚ด์šฉ

  • ์ „์ œ ์กฐ๊ฑด

dbStats ๋ฐ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ”„๋กœํŒŒ์ผ๋ง ์ •๋ณด๋ฅผ ํฌํ•จํ•œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง ์„ ํ™œ์„ฑํ™” ํ•˜๋ ค๋ฉด AppDB์— ์—ฐ๊ฒฐํ•˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ณ„์ •์ด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ตœ์†Œ ์—ญํ•  ์„ ๊ฐ€์ง„ ์‚ฌ์šฉ์ž๋กœ ์ธ์ฆํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

ํ•„์ˆ˜ ์—ญํ• 
Database

admin

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด์„ธ์š”.

์ค‘์š”

11.0.5.6967-1๋ฒ„์ „ ๋ถ€ํ„ฐ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํŒจํ‚ค์ง€ ๊ฐ€ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฐฐํฌ๊ฐ€ PATH์— ์žˆ๋Š” MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์กด์žฌ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฝ์šฐ, PATH์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๋ ค๋ฉด ์šด์˜ ์ฒด์ œ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

Debian 10 ๋˜๋Š” 11 ๋ฐ Ubuntu 18.04, 20.04 ๋˜๋Š” 22.04 ์„ ์‹คํ–‰ x86_64 ์•„ํ‚คํ…์ฒ˜:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ Debian 9, Ubuntu 16.X/18.X - DEB๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์‹คํ–‰ํ•  ํ˜ธ์ŠคํŠธ์˜ ์‹œ์Šคํ…œ ์…ธ์—์„œ ๋‹ค์Œ curl ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ Ubuntu 18.04/20.04/22.04 ๋˜๋Š” 64๋น„ํŠธ x86์šฉ Debian 9/10/11์šฉ ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.amd64.ubuntu1604.deb

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

Automation-agent.config ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
6

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

7

๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ๋Š” MongoDB ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์กด MongoDB ๋ฐฐํฌ์˜ ๊ฒฝ์šฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ mongodb ์‚ฌ์šฉ์ž๊ฐ€ ์†Œ์œ ํ•˜๊ณ  ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. MongoDB ๋ฐฐํฌ๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์†Œ์œ ์ž๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์†Œ์œ ์ž๋ฅผ mongodb ์‚ฌ์šฉ์ž๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

sudo mkdir -p /data; sudo chown mongodb:mongodb /data
8

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sudo systemctl start mongodb-mms-automation-agent.service
9

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

10

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

11

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

12

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

15

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์ค‘์š”

11.0.5.6967-1๋ฒ„์ „ ๋ถ€ํ„ฐ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํŒจํ‚ค์ง€ ๊ฐ€ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฐฐํฌ๊ฐ€ PATH์— ์žˆ๋Š” MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์กด์žฌ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฝ์šฐ, PATH์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๋ ค๋ฉด ์šด์˜ ์ฒด์ œ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

deb ํŒจํ‚ค์ง€ ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Ubuntu 18.04 ์„ ์‹คํ–‰ zSeries ์•„ํ‚คํ…์ฒ˜:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ Ubuntu 18.X Z-Series(s390x) - DEB๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

shell ๋ฅผ ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค MongoDB Agent ์˜ curl ์‹œ์Šคํ…œ 18.04 ์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ IBM zSeries์šฉ Ubuntu ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.s390x.ubuntu1804.deb

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

Automation-agent.config ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
6

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

7

๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ๋Š” MongoDB ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์กด MongoDB ๋ฐฐํฌ์˜ ๊ฒฝ์šฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ mongodb ์‚ฌ์šฉ์ž๊ฐ€ ์†Œ์œ ํ•˜๊ณ  ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. MongoDB ๋ฐฐํฌ๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์†Œ์œ ์ž๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์†Œ์œ ์ž๋ฅผ mongodb ์‚ฌ์šฉ์ž๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

sudo mkdir -p /data; sudo chown mongodb:mongodb /data
8

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sudo systemctl start mongodb-mms-automation-agent.service
9

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

10

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

11

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

12

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

15

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด์„ธ์š”.

x86_64 ์•„ํ‚คํ…์ฒ˜์—์„œ:

์ค‘์š”

11.0.5.6967-1๋ฒ„์ „ ๋ถ€ํ„ฐ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํŒจํ‚ค์ง€ ๊ฐ€ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฐฐํฌ๊ฐ€ PATH์— ์žˆ๋Š” MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์กด์žฌ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฝ์šฐ, PATH์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๋ ค๋ฉด ์šด์˜ ์ฒด์ œ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

rpm ํŒจํ‚ค์ง€ ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ RHEL/ CentOS 6.x ์‹คํ–‰:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ Amazon Linux - RPM์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๋ฅผ ์‹คํ–‰ํ•  ํ˜ธ์ŠคํŠธ์˜ ์‹œ์Šคํ…œ ์—์„œ shell MongoDB Agent ๋‹ค์Œ curl ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ64๋น„ํŠธ x ์šฉ ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„86 ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.x86_64.rpm

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

Automation-agent.config ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
6

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

7

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sudo service mongodb-mms-automation-agent start
8

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

9

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

10

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

11

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

12

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

RHEL (7.x, 8.x ๋˜๋Š” 9.x) ๋˜๋Š” CentOS (7.x ๋˜๋Š” 8.x), SUSE12, SUSE15 ๋˜๋Š” Amazon Linux 2:

์ค‘์š”

11.0.5.6967-1๋ฒ„์ „ ๋ถ€ํ„ฐ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํŒจํ‚ค์ง€ ๊ฐ€ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฐฐํฌ๊ฐ€ PATH์— ์žˆ๋Š” MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์กด์žฌ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฝ์šฐ, PATH์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๋ ค๋ฉด ์šด์˜ ์ฒด์ œ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

rpm ํŒจํ‚ค์ง€ ์‚ฌ์šฉ:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ RHEL/ CentOS (7.X), SUSE12, Amazon Linux2 - RPM์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

shell ๋ฅผ ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค MongoDB Agent ์˜ curl ์‹œ์Šคํ…œ 7 ์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ 64๋น„ํŠธ x ์šฉ RHEL ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ86 ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.x86_64.rhel<version>.rpm

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

Automation-agent.config ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
6

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

7

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sudo service mongodb-mms-automation-agent start
8

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

9

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

10

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

11

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

12

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

tar ์•„์นด์ด๋ธŒ ์‚ฌ์šฉ:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ RHEL/ CentOS (7.X), SUSE12, Amazon Linux 2 - TAR์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์„ ๋”ฐ๋ฅด๊ณ  ์ œ๊ณต๋œ ๋ช…๋ น์„ ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๋ฅผ ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค ์˜ ์‹œ์Šคํ…œ shell MongoDB Agent curl ์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ 64๋น„ํŠธ x ์šฉ RHEL ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ86 ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.rhel7_x86_64.tar.gz

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

๋ชจ๋“  ๋””๋ ‰ํ† ๋ฆฌ ์— MongoDB Agent ๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ถ”์ถœํ•˜๊ธฐ ์ „์— ์•„์นด์ด๋ธŒ๋ฅผ ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ ๋กœ ์ด๋™ํ•˜๋ ค๋Š” ๊ฒฝ์šฐ ๊ทธ๋ ‡๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด ์•„์นด์ด๋ธŒ๋ฅผ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.

tar -xvzf mongodb-mms-automation-agent-<VERSION>.rhel7_x86_64.tar.gz
6

MongoDB Agent ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”์ถœํ•œ ํ›„ ์ƒ์„ฑ๋œ ๋””๋ ‰ํ† ๋ฆฌ ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

cd mongodb-mms-automation-agent-<VERSION>.rhel7_x86_64
7

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ local.config ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

vi <install-path>/local.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

local.config ํŒŒ์ผ ์˜ ๊ฒฐ๊ณผ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
8

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ local.config ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

vi <install-path>/local.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

9

๊ธฐ์กด ๋ชจ๋‹ˆํ„ฐ๋ง ์—์ด์ „ํŠธ ์‚ฌ์šฉ์ž๊ฐ€ ์žˆ๊ณ  ์ž๋™ํ™”๋ฅผ ํ™œ์„ฑํ™”ํ•  ๊ณ„ํš์ด ์—†๋Š” ๊ฒฝ์šฐ ๋กœ๊ทธ ๋””๋ ‰ํ† ๋ฆฌ ๋งŒ ์ƒ์„ฑํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

MongoDB Agent ์— ํ•„์š”ํ•œ ํŒŒ์ผ์„ ์ €์žฅ ๋‹ค์Œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

์ฐธ๊ณ 

ํŒŒ์ผ ๊ฒฝ๋กœ์— mongodb-mms-automation ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๋ ˆ๊ฑฐ์‹œ ์•„ํ‹ฐํŒฉํŠธ์ด๋ฉฐ, ์ž๋™ํ™”๊ฐ€ ๊ตฌ์„ฑ๋œ ์ƒํƒœ๋กœ MongoDB Agent ๊ฐ€ ์„ค์น˜๋˜๊ณ  ์žˆ์Œ์„ MEAN ํ•˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค.

๊ตฌ์„ฑ ์š”์†Œ
๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ
์„ค๋ช…

๋ฐ”์ด๋„ˆ๋ฆฌ

/var/lib/mongodb-mms-automation

MongoDB Agent ๊ฐ€ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ”์ด๋„ˆ๋ฆฌ์ž…๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์—๋Š” MongoDB Agent, BI Connector ๋ฐ MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

MongoDB ์—์ด์ „ํŠธ ๋กœ๊ทธ

/var/log/mongodb-mms-automation

๋‹ค์Œ์€ MongoDB Agent๊ฐ€ ์ƒ์„ฑํ•˜๋Š” ๋กœ๊ทธ ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.

MongoDB ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค

/data

MongoDB Agent ๊ฐ€ ์ƒ์„ฑํ•˜๊ณ  ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

sudo mkdir -m 755 -p /var/lib/mongodb-mms-automation
sudo mkdir -m 755 -p /var/log/mongodb-mms-automation
sudo mkdir -m 755 -p /data

๊ธฐ๋ณธ๊ฐ’ Agent ๋ฐ”์ด๋„ˆ๋ฆฌ ๋ฐ MongoDB Ops Manager ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ ์€ /var/lib/mongodb-mms-automation์— ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ํŒŒ์ผ์„ ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ ์— ์ €์žฅ ํ•˜๋ ค๋ฉด ๋‹ค์Œ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด์„ธ์š”.

์—์ด์ „ํŠธ ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์œ„์น˜ ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Deployment, Agents, Downloads & Settings ์ˆœ์„œ๋Œ€๋กœ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. Download Directory ์ œ๋ชฉ ์•„๋ž˜์—์„œ Download Directory (Linux) ์— ํ‘œ์‹œ๋œ ๊ฒฝ๋กœ ์˜ค๋ฅธ์ชฝ์— ์žˆ๋Š” ์—ฐํ•„ ์•„์ด์ฝ˜์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  3. ๊ฒฝ๋กœ๋ฅผ ์›ํ•˜๋Š” ์ƒˆ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

  4. Save๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  5. ์—์ด์ „ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋Š” ๊ฐ ํ˜ธ์ŠคํŠธ์—์„œ ์ง€์ •ํ•œ ์ƒˆ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

    sudo mkdir -m 755 -p /<newPath>

์—์ด์ „ํŠธ ๊ตฌ์„ฑ ๋ฐฑ์—… ์˜ ์œ„์น˜ ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ์—์„œ ์—์ด์ „ํŠธ ๊ตฌ์„ฑ ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

  2. mmsConfigBackup ์„ค์ •์„ ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ์˜ ์ƒˆ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

    mmsConfigBackup=/<newPath>/mms-cluster-config-backup.json
  3. Agent ๊ตฌ์„ฑ ํŒŒ์ผ ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

  4. ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ์„ ์ƒˆ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

    sudo mv /var/lib/mongodb-mms-automation/mms-cluster-config-backup.json /<newPath>
10

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

# Create mongodb user and group if they do not exist
if ! sudo /usr/bin/id -g mongodb &>/dev/null; then
sudo /usr/sbin/groupadd -r mongodb
fi
# Create mongodb user if they do not exist and assign
# them to the mongodb group
if ! sudo /usr/bin/id mongodb &>/dev/null; then
sudo /usr/sbin/useradd -M -r -g mongodb \
-d /var/lib/mongo -s /bin/false \
-c mongodb mongodb > /dev/null 2>&1
fi
# Grant the mongodb:mongodb user and group permissions
# to manage deployments.
sudo chown mongodb:mongodb /var/lib/mongodb-mms-automation
sudo chown mongodb:mongodb /var/log/mongodb-mms-automation
sudo chown mongodb:mongodb /data
11

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ๋งˆ์ง€๋ง‰ ๋‹จ๊ณ„์—์„œ ์ƒ์„ฑํ•œ ์‹œ์Šคํ…œ ์‚ฌ์šฉ์ž ๋กœ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

nohup ./mongodb-mms-automation-agent \
--config=local.config \
>> /var/log/mongodb-mms-automation/automation-agent-fatal.log 2>&1 &
12

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

15

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

16

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

17
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

18

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

PowerPC ์•„ํ‚คํ…์ฒ˜์˜ RHEL/ CentOS (7.x)( MongoDB 3.4 ์ด์ƒ ๋ฐฐํฌ ๊ด€๋ฆฌ):

์ค‘์š”

11.0.5.6967-1๋ฒ„์ „ ๋ถ€ํ„ฐ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํŒจํ‚ค์ง€ ๊ฐ€ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฐฐํฌ๊ฐ€ PATH์— ์žˆ๋Š” MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์กด์žฌ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฝ์šฐ, PATH์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๋ ค๋ฉด ์šด์˜ ์ฒด์ œ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

rpm ํŒจํ‚ค์ง€ ์‚ฌ์šฉ:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ RHEL/ CentOS (7.X), SUSE12, Amazon Linux2 - RPM์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

shell ๋ฅผ MongoDB Agent curl ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค ์˜ ์‹œ์Šคํ…œ ์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ 7 PowerPC์šฉ RHEL ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.ppc641e.rhel<version>.rpm

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

Automation-agent.config ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
6

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

7

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sudo service mongodb-mms-automation-agent start
8

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

9

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

10

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

11

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

12

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

tar ์•„์นด์ด๋ธŒ ์‚ฌ์šฉ:

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ RHEL/ CentOS (7.X) ์ „์› (ppc64ํŒŒ์ผ) - TAR์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

shell ๋ฅผ MongoDB Agent curl ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค ์˜ ์‹œ์Šคํ…œ ์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ 7 PowerPC์šฉ RHEL ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.rhel7_ppc64le.tar.gz

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

๋ชจ๋“  ๋””๋ ‰ํ† ๋ฆฌ ์— MongoDB Agent ๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ถ”์ถœํ•˜๊ธฐ ์ „์— ์•„์นด์ด๋ธŒ๋ฅผ ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ ๋กœ ์ด๋™ํ•˜๋ ค๋Š” ๊ฒฝ์šฐ ๊ทธ๋ ‡๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด ์•„์นด์ด๋ธŒ๋ฅผ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.

tar -xvzf mongodb-mms-automation-agent-<VERSION>.rhel7_ppc64le.tar.gz
6

MongoDB Agent ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”์ถœํ•œ ํ›„ ์ƒ์„ฑ๋œ ๋””๋ ‰ํ† ๋ฆฌ ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

cd mongodb-mms-automation-agent-<VERSION>.rhel7_ppc64le
7

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ local.config ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

vi <install-path>/local.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

local.config ํŒŒ์ผ ์˜ ๊ฒฐ๊ณผ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
8

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ local.config ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

vi <install-path>/local.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

9

๊ธฐ์กด ๋ชจ๋‹ˆํ„ฐ๋ง ์—์ด์ „ํŠธ ์‚ฌ์šฉ์ž๊ฐ€ ์žˆ๊ณ  ์ž๋™ํ™”๋ฅผ ํ™œ์„ฑํ™”ํ•  ๊ณ„ํš์ด ์—†๋Š” ๊ฒฝ์šฐ ๋กœ๊ทธ ๋””๋ ‰ํ† ๋ฆฌ ๋งŒ ์ƒ์„ฑํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

MongoDB Agent ์— ํ•„์š”ํ•œ ํŒŒ์ผ์„ ์ €์žฅ ๋‹ค์Œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

์ฐธ๊ณ 

ํŒŒ์ผ ๊ฒฝ๋กœ์— mongodb-mms-automation ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๋ ˆ๊ฑฐ์‹œ ์•„ํ‹ฐํŒฉํŠธ์ด๋ฉฐ, ์ž๋™ํ™”๊ฐ€ ๊ตฌ์„ฑ๋œ ์ƒํƒœ๋กœ MongoDB Agent ๊ฐ€ ์„ค์น˜๋˜๊ณ  ์žˆ์Œ์„ MEAN ํ•˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค.

๊ตฌ์„ฑ ์š”์†Œ
๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ
์„ค๋ช…

๋ฐ”์ด๋„ˆ๋ฆฌ

/var/lib/mongodb-mms-automation

MongoDB Agent ๊ฐ€ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ”์ด๋„ˆ๋ฆฌ์ž…๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์—๋Š” MongoDB Agent, BI Connector ๋ฐ MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

MongoDB ์—์ด์ „ํŠธ ๋กœ๊ทธ

/var/log/mongodb-mms-automation

๋‹ค์Œ์€ MongoDB Agent๊ฐ€ ์ƒ์„ฑํ•˜๋Š” ๋กœ๊ทธ ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.

MongoDB ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค

/data

MongoDB Agent ๊ฐ€ ์ƒ์„ฑํ•˜๊ณ  ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

sudo mkdir -m 755 -p /var/lib/mongodb-mms-automation
sudo mkdir -m 755 -p /var/log/mongodb-mms-automation
sudo mkdir -m 755 -p /data

๊ธฐ๋ณธ๊ฐ’ Agent ๋ฐ”์ด๋„ˆ๋ฆฌ ๋ฐ MongoDB Ops Manager ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ ์€ /var/lib/mongodb-mms-automation์— ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ํŒŒ์ผ์„ ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ ์— ์ €์žฅ ํ•˜๋ ค๋ฉด ๋‹ค์Œ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด์„ธ์š”.

์—์ด์ „ํŠธ ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์œ„์น˜ ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Deployment, Agents, Downloads & Settings ์ˆœ์„œ๋Œ€๋กœ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. Download Directory ์ œ๋ชฉ ์•„๋ž˜์—์„œ Download Directory (Linux) ์— ํ‘œ์‹œ๋œ ๊ฒฝ๋กœ ์˜ค๋ฅธ์ชฝ์— ์žˆ๋Š” ์—ฐํ•„ ์•„์ด์ฝ˜์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  3. ๊ฒฝ๋กœ๋ฅผ ์›ํ•˜๋Š” ์ƒˆ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

  4. Save๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  5. ์—์ด์ „ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋Š” ๊ฐ ํ˜ธ์ŠคํŠธ์—์„œ ์ง€์ •ํ•œ ์ƒˆ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

    sudo mkdir -m 755 -p /<newPath>

์—์ด์ „ํŠธ ๊ตฌ์„ฑ ๋ฐฑ์—… ์˜ ์œ„์น˜ ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ์—์„œ ์—์ด์ „ํŠธ ๊ตฌ์„ฑ ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

  2. mmsConfigBackup ์„ค์ •์„ ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ์˜ ์ƒˆ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

    mmsConfigBackup=/<newPath>/mms-cluster-config-backup.json
  3. Agent ๊ตฌ์„ฑ ํŒŒ์ผ ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

  4. ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ์„ ์ƒˆ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

    sudo mv /var/lib/mongodb-mms-automation/mms-cluster-config-backup.json /<newPath>
10

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

# Create mongodb user and group if they do not exist
if ! sudo /usr/bin/id -g mongodb &>/dev/null; then
sudo /usr/sbin/groupadd -r mongodb
fi
# Create mongodb user if they do not exist and assign
# them to the mongodb group
if ! sudo /usr/bin/id mongodb &>/dev/null; then
sudo /usr/sbin/useradd -M -r -g mongodb \
-d /var/lib/mongo -s /bin/false \
-c mongodb mongodb > /dev/null 2>&1
fi
# Grant the mongodb:mongodb user and group permissions
# to manage deployments.
sudo chown mongodb:mongodb /var/lib/mongodb-mms-automation
sudo chown mongodb:mongodb /var/log/mongodb-mms-automation
sudo chown mongodb:mongodb /data
11

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ๋งˆ์ง€๋ง‰ ๋‹จ๊ณ„์—์„œ ์ƒ์„ฑํ•œ ์‹œ์Šคํ…œ ์‚ฌ์šฉ์ž ๋กœ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

nohup ./mongodb-mms-automation-agent \
--config=local.config \
>> /var/log/mongodb-mms-automation/automation-agent-fatal.log 2>&1 &
12

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

15

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

16

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

17
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

18

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

zSeries ์•„ํ‚คํ…์ฒ˜( MongoDB 4.4 ์ด์ƒ ๋ฐฐํฌ ๊ด€๋ฆฌ)์—์„œ๋Š” RHEL(7.x, 8.x ๋˜๋Š” 9.x) ๋˜๋Š” CentOS (7.x ๋˜๋Š” 8.x):

์ค‘์š”

11.0.5.6967-1๋ฒ„์ „ ๋ถ€ํ„ฐ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ํŒจํ‚ค์ง€ ๊ฐ€ PATH ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋ฐฐํฌ๊ฐ€ PATH์— ์žˆ๋Š” MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์กด์žฌ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง€๋Š” ๊ฒฝ์šฐ, PATH์— MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฒฝ๋กœ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด๋ ค๋ฉด ์šด์˜ ์ฒด์ œ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

RHEL(7.x, ํŒจํ‚ค์ง€8 ๊ด€๋ฆฌ์ž๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ .x ๋˜๋Š” 9.x) ๋˜๋Š” CentOS (7.x ๋˜๋Š” 8.x)๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.rpm

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ RHEL 7.X/8X Z-Series (s390x) - RPM์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

shell ๋ฅผ ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค MongoDB Agent ์˜ curl ์‹œ์Šคํ…œ 7 8์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ IBM zSeries์šฉ RHEL.X/.X์˜ ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.s390x.rhel<version>.rpm

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

Automation-agent.config ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
6

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ Automation-agent.config ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.

sudo vi /etc/mongodb-mms/automation-agent.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

7

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

sudo service mongodb-mms-automation-agent start
8

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

9

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

10

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

11

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

12

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์ด ์ ˆ์ฐจ์— ๋”ฐ๋ผ deb ๋˜๋Š” rpm ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” Linux ์‹œ์Šคํ…œ์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์— ๋ชจ๋‹ˆํ„ฐ๋ง ํ™œ์„ฑํ™” ๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

1
2

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Ops Manager ์ฝ˜์†”์˜ ์˜ค๋ฅธ์ชฝ ์ƒ๋‹จ ๋ชจ์„œ๋ฆฌ์— ์žˆ๋Š” Admin ๋งํฌ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์—์„œ Enable ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

    1. ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์†Œ๊ฐœํ•˜๋Š” ๋ฐฐ๋„ˆ ๋˜๋Š”

    2. Enable Monitoring ์„ค์ •.

3
  1. View Agent Install Instructions ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install Agent Instructions ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

  2. Select Your Server's Operating System ๋ฉ”๋‰ด์—์„œ ๊ธฐํƒ€ Linux - TAR์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Next ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. Install New MongoDB Agent ๋ชจ๋‹ฌ์ด ์—ด๋ฆฝ๋‹ˆ๋‹ค.

4

์ด ๋‹จ๊ณ„๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜์—ฌ MongoDB Agent ์„ค์น˜ ๋ชจ๋‹ฌ์— ๋”ฐ๋ผ ์ œ๊ณต๋œ ๋ช…๋ น์„ Linux ์…ธ์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

shell ๋ฅผ MongoDB Agent curl ์‹คํ–‰ ํ˜ธ์ŠคํŒ…ํ•˜๋‹ค ์˜ ์‹œ์Šคํ…œ ์—์„œ 64 Linux๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ ์ผ๋ฐ˜ ๋น„ํŠธ ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์„ ๋‹ค์šด๋กœ๋“œ ํ•ฉ๋‹ˆ๋‹ค.

curl -OL https://<OpsManagerHost>:<Port>/download/agent/automation/mongodb-mms-automation-agent-manager-latest.linux_x86_64.tar.gz

์ฐธ๊ณ 

<OpsManagerHost>:<Port> ๋ฅผ MongoDB Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์žˆ๋Š” ๊ฒฝ์šฐ <version> ๋ฅผ ์šด์˜ ์ฒด์ œ์˜ ์ฃผ์š” ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ์˜ˆ์‹œ, RHEL 7.x์˜ ๊ฒฝ์šฐ <version> ๋ฅผ 7 ๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

5

๋ชจ๋“  ๋””๋ ‰ํ† ๋ฆฌ ์— MongoDB Agent ๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ถ”์ถœํ•˜๊ธฐ ์ „์— ์•„์นด์ด๋ธŒ๋ฅผ ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ ๋กœ ์ด๋™ํ•˜๋ ค๋Š” ๊ฒฝ์šฐ ๊ทธ๋ ‡๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด ์•„์นด์ด๋ธŒ๋ฅผ ์ถ”์ถœํ•ฉ๋‹ˆ๋‹ค.

tar -xvzf mongodb-mms-automation-agent-<VERSION>.linux_x86_64.tar.gz
6

MongoDB Agent ๋ฐ”์ด๋„ˆ๋ฆฌ๋ฅผ ์ถ”์ถœํ•œ ํ›„ ์ƒ์„ฑ๋œ ๋””๋ ‰ํ† ๋ฆฌ ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

cd mongodb-mms-automation-agent-<VERSION>.linux_x86_64
7

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ local.config ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

vi <install-path>/local.config

๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ProjectID ํ”„๋กœ์ ํŠธ.

์—์ด์ „ํŠธ API ํ‚ค
ํ”„๋กœ์ ํŠธ.

Ops Manager ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)

local.config ํŒŒ์ผ ์˜ ๊ฒฐ๊ณผ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

mmsGroupId=<Project ID>
mmsApiKey=<agent API key>
mmsBaseUrl=<application URL>
8

ํ”„๋ก์‹œ ์„œ๋ฒ„๋ฅผ ํ†ตํ•ด Ops Manager์— ์—ฐ๊ฒฐํ•˜๋„๋ก MongoDB Agent๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๋ฉด httpProxy ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— ์„œ๋ฒ„๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ๋กœ local.config ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

vi <install-path>/local.config

๋‹ค์Œ ๊ตฌ์„ฑ ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

ํ‚ค
๊ฐ’

ํ”„๋ก์‹œ ์„œ๋ฒ„์˜ URL(ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋ฐ ํฌํŠธ)์ž…๋‹ˆ๋‹ค.

9

๊ธฐ์กด ๋ชจ๋‹ˆํ„ฐ๋ง ์—์ด์ „ํŠธ ์‚ฌ์šฉ์ž๊ฐ€ ์žˆ๊ณ  ์ž๋™ํ™”๋ฅผ ํ™œ์„ฑํ™”ํ•  ๊ณ„ํš์ด ์—†๋Š” ๊ฒฝ์šฐ ๋กœ๊ทธ ๋””๋ ‰ํ† ๋ฆฌ ๋งŒ ์ƒ์„ฑํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

MongoDB Agent ์— ํ•„์š”ํ•œ ํŒŒ์ผ์„ ์ €์žฅ ๋‹ค์Œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

์ฐธ๊ณ 

ํŒŒ์ผ ๊ฒฝ๋กœ์— mongodb-mms-automation ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๋ ˆ๊ฑฐ์‹œ ์•„ํ‹ฐํŒฉํŠธ์ด๋ฉฐ, ์ž๋™ํ™”๊ฐ€ ๊ตฌ์„ฑ๋œ ์ƒํƒœ๋กœ MongoDB Agent ๊ฐ€ ์„ค์น˜๋˜๊ณ  ์žˆ์Œ์„ MEAN ํ•˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค.

๊ตฌ์„ฑ ์š”์†Œ
๊ธฐ๋ณธ ๋””๋ ‰ํ† ๋ฆฌ
์„ค๋ช…

๋ฐ”์ด๋„ˆ๋ฆฌ

/var/lib/mongodb-mms-automation

MongoDB Agent ๊ฐ€ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ”์ด๋„ˆ๋ฆฌ์ž…๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์—๋Š” MongoDB Agent, BI Connector ๋ฐ MongoDB ๋ฐ”์ด๋„ˆ๋ฆฌ๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

MongoDB ์—์ด์ „ํŠธ ๋กœ๊ทธ

/var/log/mongodb-mms-automation

๋‹ค์Œ์€ MongoDB Agent๊ฐ€ ์ƒ์„ฑํ•˜๋Š” ๋กœ๊ทธ ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.

MongoDB ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค

/data

MongoDB Agent ๊ฐ€ ์ƒ์„ฑํ•˜๊ณ  ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

sudo mkdir -m 755 -p /var/lib/mongodb-mms-automation
sudo mkdir -m 755 -p /var/log/mongodb-mms-automation
sudo mkdir -m 755 -p /data

๊ธฐ๋ณธ๊ฐ’ Agent ๋ฐ”์ด๋„ˆ๋ฆฌ ๋ฐ MongoDB Ops Manager ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ ์€ /var/lib/mongodb-mms-automation์— ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ํŒŒ์ผ์„ ๋‹ค๋ฅธ ๋””๋ ‰ํ† ๋ฆฌ ์— ์ €์žฅ ํ•˜๋ ค๋ฉด ๋‹ค์Œ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด์„ธ์š”.

์—์ด์ „ํŠธ ๋ฐ”์ด๋„ˆ๋ฆฌ์˜ ์œ„์น˜ ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. Deployment, Agents, Downloads & Settings ์ˆœ์„œ๋Œ€๋กœ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. Download Directory ์ œ๋ชฉ ์•„๋ž˜์—์„œ Download Directory (Linux) ์— ํ‘œ์‹œ๋œ ๊ฒฝ๋กœ ์˜ค๋ฅธ์ชฝ์— ์žˆ๋Š” ์—ฐํ•„ ์•„์ด์ฝ˜์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  3. ๊ฒฝ๋กœ๋ฅผ ์›ํ•˜๋Š” ์ƒˆ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

  4. Save๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  5. ์—์ด์ „ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋Š” ๊ฐ ํ˜ธ์ŠคํŠธ์—์„œ ์ง€์ •ํ•œ ์ƒˆ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

    sudo mkdir -m 755 -p /<newPath>

์—์ด์ „ํŠธ ๊ตฌ์„ฑ ๋ฐฑ์—… ์˜ ์œ„์น˜ ๋ฅผ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ์›ํ•˜๋Š” ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ์—์„œ ์—์ด์ „ํŠธ ๊ตฌ์„ฑ ํŒŒ์ผ ์„ ์—ฝ๋‹ˆ๋‹ค.

  2. mmsConfigBackup ์„ค์ •์„ ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ์˜ ์ƒˆ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

    mmsConfigBackup=/<newPath>/mms-cluster-config-backup.json
  3. Agent ๊ตฌ์„ฑ ํŒŒ์ผ ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

  4. ๊ตฌ์„ฑ ๋ฐฑ์—… ํŒŒ์ผ์„ ์ƒˆ ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

    sudo mv /var/lib/mongodb-mms-automation/mms-cluster-config-backup.json /<newPath>
10

๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

# Create mongodb user and group if they do not exist
if ! sudo /usr/bin/id -g mongodb &>/dev/null; then
sudo /usr/sbin/groupadd -r mongodb
fi
# Create mongodb user if they do not exist and assign
# them to the mongodb group
if ! sudo /usr/bin/id mongodb &>/dev/null; then
sudo /usr/sbin/useradd -M -r -g mongodb \
-d /var/lib/mongo -s /bin/false \
-c mongodb mongodb > /dev/null 2>&1
fi
# Grant the mongodb:mongodb user and group permissions
# to manage deployments.
sudo chown mongodb:mongodb /var/lib/mongodb-mms-automation
sudo chown mongodb:mongodb /var/log/mongodb-mms-automation
sudo chown mongodb:mongodb /data
11

MongoDB Agent ๋ฅผ ์„ค์น˜ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์—์„œ ๋งˆ์ง€๋ง‰ ๋‹จ๊ณ„์—์„œ ์ƒ์„ฑํ•œ ์‹œ์Šคํ…œ ์‚ฌ์šฉ์ž ๋กœ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

nohup ./mongodb-mms-automation-agent \
--config=local.config \
>> /var/log/mongodb-mms-automation/automation-agent-fatal.log 2>&1 &
12

Install Agent Instructions ๋ชจ๋‹ฌ์—์„œ ๊ฐ ๋ฐฐํฌ์˜ Install the MongoDB Agent ๋‹จ๊ณ„์— Verified ๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

13

Set Up Ops Manager Monitoring ๋ชจ๋‹ฌ์—์„œ ์—์ด์ „ํŠธ๊ฐ€ Monitoring ๊ฐ€ ํ™œ์„ฑํ™”๋œ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฝ๋‹ˆ๋‹ค.

Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

14

๋‹ค์Œ ํ•„๋“œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

Hostname
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—…์„ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์˜ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„์„ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

Port

๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ํฌํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Enable Authentication

์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ์ด ์˜ต์…˜์„ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

Use TLS/SSL

ํ† ๊ธ€ํ•˜์—ฌ TLS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

Ops Manager์— Deployment found ์ด(๊ฐ€) ํ‘œ์‹œ๋˜๋ฉด Continue ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

15

Ops Manager์— ๋ฐฑ์—… ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๋Š” ํ˜ธ์ŠคํŠธ์™€ ์‹คํ–‰ ์ค‘์ธ ์—์ด์ „ํŠธ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. Continue ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

16

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„œ๋ฒ„์˜ CPU, ๋ฉ”๋ชจ๋ฆฌ ๋ฐ ๋””์Šคํฌ ์šฉ๋Ÿ‰์„ ์ถ”์ ํ•˜๊ณ  ์ง€์ •๋œ ๊ฒฝ๊ณ  ์กฐ๊ฑด ์ด ๋ฐœ์ƒํ•˜๋ฉด ๊ฒฝ๊ณ  ์•Œ๋ฆผ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž‘๋™ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด No, Just Monitor ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด ๋‹ค์Œ์„ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ๋ฐฐํฌ์˜ ๊ฐ ์„œ๋ฒ„์—์„œ ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด ์ฝ๊ธฐ ์ „์šฉ ๋ชจ๋“œ์—์„œ ์ž๋™ํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ๊ฒ€ํ† ํ•ฉ๋‹ˆ๋‹ค.

  2. ํŽ˜์ด์ง€์— ๋‚˜์—ด๋œ ์š”๊ตฌ ์‚ฌํ•ญ ๋ฐ ์œ„ํ—˜์„ ์ฝ์—ˆ์Œ์„ ํ™•์ธํ•˜๋ ค๋ฉด ํ™•์ธ๋ž€์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  3. Continue๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

17
  1. Install Agent ๋“œ๋กญ๋‹ค์šด ๋ชฉ๋ก์—์„œ Automation ์„(๋ฅผ) ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  2. Initialize Automation๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

18

MongoDB Agent๋Š” ์šด์˜ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•ด MongoDB ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  1. MongoDB Agent๊ฐ€ ์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด Review Deployment ์„(๋ฅผ) ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

  2. AppDB: Review Your Changes ๋ชจ๋‹ฌ์˜ ์„ค์ • ์„ ๊ฒ€ํ† ํ•˜๊ณ  Confirm & Deploy ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์ฐธ๊ณ 

๋ชจ๋‹ˆํ„ฐ๋ง ๋ฐ์ดํ„ฐ๋ฅผ ๋ณผ ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ ํ•˜๋‚˜ ์ด์ƒ์˜ ํ˜ธ์ŠคํŠธ์—์„œ ๋ชจ๋‹ˆํ„ฐ๋ง์ด ํ™œ์„ฑํ™”๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

๋Œ์•„๊ฐ€๊ธฐ

์‹คํ–‰ ์ „ ๊ฒ€์‚ฌ ์‹คํŒจ ํ•ด๊ฒฐ

์ด ํŽ˜์ด์ง€์˜ ๋‚ด์šฉ