Skip to content
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

Set lower limit for journald logs #898

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

dacook
Copy link
Member

@dacook dacook commented Oct 5, 2023

To avoid hard drive filling up.

Dunno if it was a problem before, but it was easy to copy from another project.

Tested on au-staging:

~/projects/ofn-install $ ansible-playbook playbooks/provision.yml --tag=config -l au-staging
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

PLAY [provision] *******************************************************************************************************
Thursday 05 October 2023  14:02:39 +1100 (0:00:00.122)       0:00:00.122 ******

TASK [Gathering Facts] *************************************************************************************************
ok: [staging.openfoodnetwork.org.au]
Thursday 05 October 2023  14:02:41 +1100 (0:00:01.888)       0:00:02.010 ******

TASK [config : Set journal log size limit] *****************************************************************************
changed: [staging.openfoodnetwork.org.au]
Thursday 05 October 2023  14:02:42 +1100 (0:00:00.913)       0:00:02.923 ******

RUNNING HANDLER [config : Restart journald] ****************************************************************************
changed: [staging.openfoodnetwork.org.au]

PLAY RECAP *************************************************************************************************************
staging.openfoodnetwork.org.au : ok=3    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

Thursday 05 October 2023  14:02:43 +1100 (0:00:01.245)       0:00:04.169 ******
===============================================================================
Gathering Facts ------------------------------------------------------------------------------------------------- 1.89s
config : Restart journald --------------------------------------------------------------------------------------- 1.25s
config : Set journal log size limit ----------------------------------------------------------------------------- 0.91s

To avoid hard drive filling up.

Dunno if it was a problem before, but it was easy to copy from another project.
@dacook
Copy link
Member Author

dacook commented Oct 5, 2023

Although this may or may not be a problem for existing servers, I think we might as well provision it just in case.

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mkllnk mkllnk merged commit a73c77e into openfoodfoundation:master Oct 5, 2023
1 of 2 checks passed
@dacook
Copy link
Member Author

dacook commented Oct 5, 2023

Great, I'll plan to provision this mid-next week. I think I'll use the tag (like above) to save time.

@dacook
Copy link
Member Author

dacook commented Oct 17, 2023

Deployed to all servers:

~/projects/ofn-install $ ansible-playbook --limit 'all_prod,all_staging' playbooks/provision.yml --tag config

PLAY RECAP *************************************************************************************************************
app.katuma.org             : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
coopcircuits.fr            : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
csicsoka.org               : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.be         : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.ca         : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.de         : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.ie         : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.net        : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.org.au     : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.org.nz     : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
openfoodnetwork.org.uk     : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
staging.coopcircuits.fr    : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
staging.openfoodnetwork.org.au : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
staging.openfoodnetwork.org.uk : ok=4    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants