Skip to content

ECE allocators capacity updated for svc restart #1507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions deploy-manage/deploy/cloud-enterprise/ece-manage-capacity.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ ECE does not support hot-adding of resources to a running node. When increasing
::::


To adjust the allocator capacity, prior to ECE 3.5.0; it is necessary to reinstall ECE on the host with a new value assigned to the `--capacity` parameter. From ECE 3.5.0 onwards, just use the ECE API :
To adjust the allocator capacity prior to ECE 3.5.0, you must reinstall ECE on the host with a new value assigned to the `--capacity` parameter. Starting with ECE 3.5.0, you can update the allocator capacity using the [allocator settings ECE API](https://www.elastic.co/docs/api/doc/cloud-enterprise/operation/operation-set-allocator-settings). After making this change, you must restart the allocator service for it to take effect.

```sh
curl -X PUT \
http(s)://<ece_admin_url:port>/api/v1/platform/infrastructure/allocators/<allocator_id>/settings \
-H “Authorization: ApiKey $ECE_API_KEY” \
-H “Authorization: ApiKey $ECE_API_KEY” \ <1>
-H 'Content-Type: application/json' \
-d '{"capacity":<Capacity_Value_in_MB>}'
```
1. For information on how to use API keys for authentication, refer to [Access the API from the command line](cloud://reference/cloud-enterprise/ece-api-command-line.md).

For more information on how to use API keys for authentication, check the section [Access the API from the Command Line](cloud://reference/cloud-enterprise/ece-api-command-line.md).
After applying the change, log in to the allocator host you updated and restart the allocator service:

```sh
docker restart frc-allocators-allocator
```

::::{important}
Prior to ECE 3.5.0, regardless of the use of this API, the [CPU quota](#ece-alloc-cpu) used the memory specified at installation time.
Expand Down
2 changes: 1 addition & 1 deletion deploy-manage/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ toc:
- file: deploy/cloud-enterprise/ece-load-balancers.md
- file: deploy/cloud-enterprise/ece-jvm.md
- file: deploy/cloud-enterprise/ece-wildcard-dns.md
- file: deploy/cloud-enterprise/ece-manage-capacity.md
- file: deploy/cloud-enterprise/install.md
children:
- file: deploy/cloud-enterprise/identify-deployment-scenario.md
Expand Down Expand Up @@ -128,6 +127,7 @@ toc:
- file: deploy/cloud-enterprise/change-ece-api-url.md
- file: deploy/cloud-enterprise/change-endpoint-urls.md
- file: deploy/cloud-enterprise/enable-custom-endpoint-aliases.md
- file: deploy/cloud-enterprise/ece-manage-capacity.md
- file: deploy/cloud-enterprise/configure-allocator-affinity.md
- file: deploy/cloud-enterprise/change-allocator-disconnect-timeout.md
- file: deploy/cloud-enterprise/manage-elastic-stack-versions.md
Expand Down
Loading