Skip to content
Snippets Groups Projects
Commit 4a255306 authored by Zhibin Mai's avatar Zhibin Mai
Browse files
parents c85271a2 da8eb48b
No related branches found
No related tags found
1 merge request!486Enable the feature flag for geo-shape decimation by default
Pipeline #167496 failed
...@@ -46,8 +46,8 @@ First you need to set variables in **values.yaml** file using any code editor. S ...@@ -46,8 +46,8 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**data.requestsCpu** | amount of requested CPU | string | 0.1 | yes **data.requestsCpu** | amount of requested CPU | string | 480m | yes
**data.requestsMemory** | amount of requested memory| string | 640M | yes **data.requestsMemory** | amount of requested memory| string | 700Mi | yes
**data.limitsCpu** | CPU limit | string | 1 | yes **data.limitsCpu** | CPU limit | string | 1 | yes
**data.limitsMemory** | memory limit | string | 1G | yes **data.limitsMemory** | memory limit | string | 1G | yes
**data.image** | service image | string | - | yes **data.image** | service image | string | - | yes
...@@ -72,9 +72,9 @@ First you need to set variables in **values.yaml** file using any code editor. S ...@@ -72,9 +72,9 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required | | Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------| |------|-------------|------|---------|---------|
**istio.proxyCPU** | CPU request for Envoy sidecars | string | 50m | yes **istio.proxyCPU** | CPU request for Envoy sidecars | string | 130m | yes
**istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | 500m | yes **istio.proxyCPULimit** | CPU limit for Envoy sidecars | string | 500m | yes
**istio.proxyMemory** | memory request for Envoy sidecars | string | 64Mi | yes **istio.proxyMemory** | memory request for Envoy sidecars | string | 100Mi | yes
**istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | 512Mi | yes **istio.proxyMemoryLimit** | memory limit for Envoy sidecars | string | 512Mi | yes
### Install the helm chart ### Install the helm chart
......
...@@ -14,7 +14,8 @@ spec: ...@@ -14,7 +14,8 @@ spec:
labels: labels:
app: {{ printf "redis-%s" .Values.conf.appName | quote }} app: {{ printf "redis-%s" .Values.conf.appName | quote }}
annotations: annotations:
sidecar.istio.io/proxyCPU: 30m sidecar.istio.io/proxyCPU: 50m
sidecar.istio.io/proxyMemory: 100Mi
spec: spec:
containers: containers:
- args: - args:
...@@ -31,5 +32,6 @@ spec: ...@@ -31,5 +32,6 @@ spec:
protocol: TCP protocol: TCP
resources: resources:
requests: requests:
memory: 100Mi cpu: 30m
memory: 50Mi
{{ end }} {{ end }}
...@@ -13,8 +13,8 @@ data: ...@@ -13,8 +13,8 @@ data:
springProfilesActive: "gcp" springProfilesActive: "gcp"
storageHost: "http://storage" storageHost: "http://storage"
# Deployment # Deployment
requestsCpu: "75m" requestsCpu: "480m"
requestsMemory: "640M" requestsMemory: "700Mi"
limitsCpu: "1" limitsCpu: "1"
limitsMemory: "1G" limitsMemory: "1G"
image: "" image: ""
...@@ -36,7 +36,7 @@ conf: ...@@ -36,7 +36,7 @@ conf:
indexerRedisSecretName: "indexer-redis-secret" indexerRedisSecretName: "indexer-redis-secret"
istio: istio:
proxyCPU: "25m" proxyCPU: "130m"
proxyCPULimit: "200m" proxyCPULimit: "200m"
proxyMemory: "64Mi" proxyMemory: "100Mi"
proxyMemoryLimit: "256Mi" proxyMemoryLimit: "256Mi"
...@@ -116,6 +116,10 @@ public class StorageServiceImpl implements StorageService { ...@@ -116,6 +116,10 @@ public class StorageServiceImpl implements StorageService {
throw new AppException(HttpStatus.SC_NOT_FOUND, "Invalid request", "Storage service returned empty response"); throw new AppException(HttpStatus.SC_NOT_FOUND, "Invalid request", "Storage service returned empty response");
} }
if (response.getResponseCode() == 500) {
throw new AppException(RequestStatus.NO_RETRY, "Server error", String.format("Storage service error: %s", response.getBody()));
}
Records records = null; Records records = null;
try { try {
records = this.objectMapper.readValue(bulkStorageData, Records.class); records = this.objectMapper.readValue(bulkStorageData, Records.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment