This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2587 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 443db130bf38a709995ef7493b371f67deac32d4 Author: leonidfrolov <[email protected]> AuthorDate: Fri Nov 19 12:02:28 2021 +0200 [DATALAB-2587]: decreased spark memory --- infrastructure-provisioning/src/general/lib/os/fab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py index 722fb98..42318e2 100644 --- a/infrastructure-provisioning/src/general/lib/os/fab.py +++ b/infrastructure-provisioning/src/general/lib/os/fab.py @@ -788,7 +788,7 @@ def get_spark_memory(creds=False, os_user='', hostname='', keyfile=''): else: mem = conn.sudo('free -m | grep Mem | tr -s " " ":" | cut -f 2 -d ":"').stdout.replace('\n', '') instance_memory = int(mem) - spark_memory = round(instance_memory * 90 / 100) + spark_memory = round(instance_memory * 85 / 100) return spark_memory except Exception as err: logging.error('Function install_inactivity_checker error:', str(err)) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
