~xavpaice/charm-graylog:1794505-smtp-hlemon

Last commit made on 2021-06-18
Get this branch:
git clone -b 1794505-smtp-hlemon https://git.launchpad.net/~xavpaice/charm-graylog
Only Xav Paice can upload to this branch. If you are Xav Paice please log in for upload directions.

Branch merges

Branch information

Name:
1794505-smtp-hlemon
Repository:
lp:~xavpaice/charm-graylog

Recent commits

ed75b69... by Xav Paice

Linting and add exclusions for Black/flake8 conflicts

9de3a43... by Heather Lemon

email config options lp#1794505

85cfd97... by Xav Paice

Update tests for new ubuntu charm

3b45c83... by Xav Paice

Reduce elastic heap size in tests

To allow functional tests to run in smaller VMs, reduce the es_heap_size
to 1G for the test bundles.

0644cef... by Joe Guo

src/config.yaml: adjust jvm_heap_size description to be more helpful

Signed-off-by: Joe Guo <email address hidden>

c26232b... by Joe Guo

src/tests/unit/test_graylog.py: add tests for validate_jvm_heap_size

Signed-off-by: Joe Guo <email address hidden>

cfe68aa... by Joe Guo

src/reactive/graylog.py: validate jvm heap size

if jvm_heap_size is configured to be greater than machine total mem,
graylog java process will keep getting killed and cause REST API to
fail without obvious error message.
Juju status will show "Waiting for: REST API" forever, and functional
tests will timeout/fail.

This patch will check jvm_heap_size to ensure it's valid and not too large.

LP: #1899158

Signed-off-by: Joe Guo <email address hidden>

d1da568... by Joe Guo

src/tests/unit/test_graylog.py: add doc string to fix lint error

Signed-off-by: Joe Guo <email address hidden>

e0afc87... by Xav Paice

Add max_check_attempts config option

This adds a max_check_attempts configuration option to the charm which,
if set, passes an extra parameter via the relation to ensure that the
Graylog Health check is executed by Nagios a different number of times
to the default of 4 before switching from SOFT to HARD.

5a82c58... by Peter Sabaini

Tests: wait longer for expected outcomes

Give tests more chance to succeed on loaded systems