Skip to content

Commit 09c9e01

Browse files
committed
Add initial implementation
1 parent db54d6d commit 09c9e01

File tree

12 files changed

+1660
-0
lines changed

12 files changed

+1660
-0
lines changed

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# === Go ===
2+
3+
# If you prefer the allow list template instead of the deny list, see community template:
4+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
5+
#
6+
# Binaries for programs and plugins
7+
*.exe
8+
*.exe~
9+
*.dll
10+
*.so
11+
*.dylib
12+
ec_check
13+
14+
# Test binary, built with `go test -c`
15+
*.test
16+
17+
# Output of the go coverage tool, specifically when used with LiteIDE
18+
*.out
19+
20+
# Dependency directories (remove the comment below to include it)
21+
# vendor/
22+
23+
# Go workspace file
24+
go.work
25+
go.work.sum
26+
27+
dist/

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
44

5+
`ec_check` is a tool to check Elastic Cloud deployments.
6+
7+
As of now, the main function is to evaluate, if downscaling of an Elasticsearch
8+
data tier within an Elastic Cloud deployment is possible based on the current
9+
disk usage.
10+
11+
## Usage
12+
13+
### Downscale Check
14+
15+
By default, for downscaling, only strict vertical downscaling is proposed.
16+
17+
By providing the extra flag `--recommend-zone-change`, `ec_check` will also
18+
propose a combination of changing the instance size and the number of used zones
19+
at the same time.
20+
**CAUTION**: This mode is not recommended by Elastic. If you strictly require 3
21+
zones, this feature can not be used.
22+
23+
```bash
24+
$ ec_check downscale --region <region> --profile <profile> --deployment <name> --username <username> --password <password>
25+
```
26+
27+
By default, a headroom of 25% is required after downscaling for `ec_check` to
28+
propose downscaling of a data tier. This can be changed by flag: `--headroom-pct`
29+
and the respective percentage, e.g.: `--headroom-pct 27.5`
30+
31+
### Elasticsearch Regions
32+
33+
Get the supported list of regions:
34+
35+
```bash
36+
$ ec_check regions
37+
```
38+
39+
### Elasticsearch Profiles
40+
41+
Get the supported list of hardware profiles for a given region:
42+
43+
```bash
44+
$ ec_check profiles --region <region>
45+
```
46+
547
## Community
648

749
This project has adopted the code of conduct defined by the [Contributor Covenant](https://contributor-covenant.org/)

0 commit comments

Comments
 (0)