Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Beefed up ES allocated resources
  • Loading branch information
mbarbero committed Mar 9, 2021
1 parent 2b75a04 commit 31fbf07
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions kubernetes/open-vsx.org.libsonnet
Expand Up @@ -256,14 +256,18 @@ local newElasticSearchCluster(env) = {
containers: [
{
name: "elasticsearch",
env: utils.pairList(self._env),
_env:: {
ES_JAVA_OPTS: if (env.envName == "staging") then "-Xms1g -Xmx1g" else "-Xms4g -Xmx4g",
},
resources: {
requests: {
memory: if (env.envName == "staging") then "2Gi" else "4Gi",
memory: if (env.envName == "staging") then "2Gi" else "8Gi",
cpu: 1
},
limits: {
memory: if (env.envName == "staging") then "2Gi" else "4Gi",
cpu: if (env.envName == "staging") then 1 else 2,
memory: if (env.envName == "staging") then "2Gi" else "8Gi",
cpu: if (env.envName == "staging") then 1 else 4,
}
}
}
Expand Down

0 comments on commit 31fbf07

Please sign in to comment.