- Single instance vs Replica set
- Greenfield which is a DB provisioned by NDB vs Brownfield which is a DB registered to NDB
I have received a few quistions about how to do this via API so here we go. First some basic info about the API call.
- HTTP Method
- Post
- NDB URI
- /era/v0.9/databases/<DB_uuid>/update/extend-storage
- Body/Payload
-
{ "actionArguments": [ { "name": "working_dir", "value": "/tmp" }, { "name": "pre_script_cmd", "value": "" }, { "name": "post_script_cmd", "value": "" }, { "name": "storage_size", "value": "<value_of_your_choice>" }, { "name": "data_percent", "value": "<value_of_your_choice>" }, { "name": "journal_percent", "value": "<value_of_your_choice>" }, { "name": "log_percent", "value": "<value_of_your_choice>" } ], "applicationType": "mongodb_database" }
-
Let’s try it out, i will increase total storage from 600GB to 700GB.
- List current storage definition via:
- Now i’ll extend my storage via Postman with 100 GB where 70% will be used for data, 20% for journal and 10% for log

- NDB API response via Postman

- NDB operation to extend storage

- New storage available is now 600GB
That simple👍👍



