-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb2c72e
commit ec3acb1
Showing
4 changed files
with
620 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright 2022 Canonical Ltd. | ||
# See LICENSE file for licensing details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import subprocess | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True, scope="module") | ||
def opensearch_sysctl_settings(): | ||
"""Necessary settings for Opensearch | ||
This should probably rather go to ci.yaml""" | ||
subprocess.run(["sudo", "sysctl", "-w", "vm.swappiness=0"]) | ||
subprocess.run(["sudo", "sysctl", "-w", "vm.max_map_count=262144"]) | ||
subprocess.run(["sudo", "sysctl", "-w", "net.ipv4.tcp_retries2=5"]) |
Oops, something went wrong.