housezhang created ZEPPELIN-5301: ------------------------------------ Summary: zeppelin on k8s provide configmaps to set resource request and limit Key: ZEPPELIN-5301 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5301 Project: Zeppelin Issue Type: Improvement Components: Kubernetes Affects Versions: 0.9.0, 0.8.2 Reporter: housezhang
i want to set request source to control interpreter pod resource : I find in the 100-interpreter-spec.yaml ,provide zeppelin.k8s.interpreter.memory and zeppelin.k8s.interpreter.cores to set resouce request and limit ,but in the K8sRemoteInterpreterProcess class do not set properties except spark interpreter , so ,i solved this by the fllow : in the k8s zeppelin-server-conf-map configmap add follow : ZEPPELIN_K8S_INTERPRETER_CORES: 1 ZEPPELIN_K8S_INTERPRETER_MEMORY: 2Gi int the K8sRemoteInterpreterProcess get the property by the System env: if(StringUtils.isNotEmpty(getCoreValue())){ k8sProperties.put("zeppelin.k8s.interpreter.cores", getCoreValue()); } if(StringUtils.isNotEmpty(getMemoryValue())){ k8sProperties.put("zeppelin.k8s.interpreter.memory", getMemoryValue()); } private CharSequence getCoreValue() { return System.getenv("ZEPPELIN_K8S_INTERPRETER_CORES"); } -- This message was sent by Atlassian Jira (v8.3.4#803005)