Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: catalog api bss #258

Open
wants to merge 59 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
c41cffc
catalog api bss
Apr 21, 2023
d232014
catalog api bss
Apr 25, 2023
33f99ad
catalog api bss
Apr 27, 2023
24b2e88
BSS to Stat Reveiver
pavelgopanenko Jul 14, 2023
4ca5d50
Revert bss settings in Catalog API
pavelgopanenko Jul 14, 2023
1664407
BSS to Stat in catalog-api
pavelgopanenko Sep 22, 2023
6e6ebe8
Merge remote-tracking branch 'origin/develop' into catalog-api-bss
Feb 20, 2024
ef3f731
catalog api stat config actualization
Feb 20, 2024
1724b74
fix pro-api/values.yaml doc (#432)
Ashigo May 6, 2024
b076674
[tiles-api] Upgrade to 4.54.0 (#428)
FreakyGranny May 6, 2024
5e0f53a
Add missing default for enabled_modules->predictors in citylens-web c…
PeterBeklemishev May 8, 2024
5fd2f18
navi-router 6.17.0.8 -> 6.17.1.2 (#434)
i-bogomazov May 13, 2024
07e4068
[PRO-5009] Changed helm/hooks. (#436)
m7v May 17, 2024
ec3cfca
pro-ui: New external style manager config (#426)
kos33rd May 24, 2024
79bc905
GH Actions readme checker workflow (#438)
DAMoskalev May 24, 2024
dc62228
Gh actions readme checker changing name (#440)
DAMoskalev May 24, 2024
7d7f1a5
PRO-UI 2.14.0 (#441)
Aveldin1 May 28, 2024
1380603
Merge master
dbelyaev-nsk May 28, 2024
6528067
Merge remote-tracking branch 'origin/develop' into catalog-api-bss
May 29, 2024
5ff1e81
PRO-UI fix hooks (#443)
dbelyaev-nsk May 30, 2024
31461f0
[PRO-5181] Обновление pro-api до версии 1.22.0 и pro-ui до версии 2.1…
v-loboda Jun 10, 2024
a1ce1bf
Citylens 1.9.0 & custom CA support (#439)
sergeLeLe Jun 10, 2024
1c85ae0
Fix citylens-web configmap (#448)
PeterBeklemishev Jun 11, 2024
52c05a4
Gis-platform. Мелкие правки по дефолтным параметрам (#450)
v-a-v Jun 17, 2024
651dbd9
[license] Fixed issue with k8s ca automount (#444)
Bolodya1997 Jun 17, 2024
f55281a
WAPI-23444 custom ca twins api (#437)
DemonNSK Jun 18, 2024
a178dcc
Bump citylens to 1.10.0 (#453)
PeterBeklemishev Jun 18, 2024
ca434be
PRO-5559: upgrade key ui to latest (#449)
ostrovskiy2gis Jun 18, 2024
033623c
Правки в чартах mapgl-js-api и floors-api (#420)
itanka9 Jun 19, 2024
9f6b749
release 1.24.0
Jun 19, 2024
8d6c3ff
Add ability to add extra env vars to citylens-web deployment (#455)
PeterBeklemishev Jun 21, 2024
2b50f21
chart/generic-chart syncup (#452)
i-bogomazov Jun 25, 2024
5785840
pro-api serviceAccountOverride support (#456)
DAMoskalev Jun 26, 2024
1d56357
[chart/navi-back] 7.23.0.5 release (#451)
uk-navi-ci Jun 26, 2024
0294050
Merge master
Jun 27, 2024
5871c13
fix conflict
Jun 27, 2024
ebec6e6
[ONPREM-839] Add revisionHistoryLimit (#459)
Ashigo Jul 12, 2024
391e6b5
add revision history limit to navi-services (#458)
Ashigo Jul 12, 2024
5441daa
Add github action with Mattermost Notify (#465)
Efber Jul 19, 2024
9af0681
[DEVOPS-1178] add navi back freeroam (#447)
SanchezzRU Jul 22, 2024
781e696
[PRO-5488] Change-Helm for PRO-UI (#460)
Aveldin1 Jul 22, 2024
34701cc
Add new citylens-workers based worker & add Drivers asset-related top…
PeterBeklemishev Jul 24, 2024
8790dee
Merge master
Jul 25, 2024
6d2fb86
Update Chart.yaml
DAMoskalev Jul 25, 2024
866ddfa
changelog update
Jul 25, 2024
ca3520b
conflict trash fix
Jul 25, 2024
9a91285
update
Jul 25, 2024
0ddfc8f
Merge branch 'master' into develop
Jul 31, 2024
0bb2be5
Chore: remove unused helmfile (#480)
endryhold Aug 8, 2024
576873d
search-api: custom CA certificates support (#478)
zhukov-d-man Aug 26, 2024
89d0660
Проверить ПР search 478. Fix readme (#485)
v-a-v Aug 26, 2024
8a561ae
Обновление PRO API до версии 1.35.0 и PRO UI до версии 2.27.0 (#481)
dmolochnikov Aug 28, 2024
cf78afb
Citylens 1.12.0 (#484)
PeterBeklemishev Aug 28, 2024
1952c4b
chart/navi-back syncup (#470)
uk-navi-ci Aug 28, 2024
bb112bd
Chore: styleguide kafka example (#488)
endryhold Aug 29, 2024
d751a56
WAPI-23606 catalog search config (#475)
DemonNSK Aug 29, 2024
dff1ec4
Merge remote-tracking branch 'origin/develop' into catalog-api-bss
Aug 29, 2024
97fa7ec
WAPI-23443 статистика запросов и поисков
Aug 29, 2024
f7a41fa
WAPI-23443 статистика запросов и поисков
Aug 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Breaking-Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# 2GIS On-Premise Breaking-Changes

## [1.27.0]

### PRO
- ui.strategy renamed to strategy
- ui.image renamed to image
- ui.replicas renamed to replicas
- ui.revisionHistoryLimit renamed to revisionHistoryLimit
- ui.terminationGracePeriodSeconds renamed to terminationGracePeriodSeconds
- ui.nodeSelector renamed to nodeSelector
- ui.affinity renamed to affinity
- ui.tolerations renamed to tolerations
- ui.podAnnotations renamed to podAnnotations
- ui.podLabels renamed to podLabels
- ui.annotations renamed to annotations
- ui.labels renamed to labels
- ui.readinessProbe renamed to readinessProbe
- ui.livenessProbe renamed to livenessProbe
- ui.containerPort renamed to containerPort
- ui.service renamed to service
- ui.ingress renamed to ingress
- ui.resources renamed to resources
- ui.hpa renamed to hpa


## [1.26.0]

### citylens
Expand Down
37 changes: 33 additions & 4 deletions charts/catalog-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,13 @@ See the [documentation](https://docs.2gis.com/en/on-premise/search) to learn abo

### Search settings

| Name | Description | Value |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `search.url` | URL of the Search service, ex: http://{search-api}.svc. This URL should be accessible from all the pods within your Kubernetes cluster. **Required** | `""` |
| `search.connectTimeout` | Timeout for connect to the Search service | `300ms` |
| Name | Description | Value |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `search.url` | URL of the Search service, ex: http://{search-api}.svc. This URL should be accessible from all the pods within your Kubernetes cluster. **Required** | `""` |
| `search.connectTimeout` | Timeout for connect to the Search service | `300ms` |
| `search.minConnections` | The minimum number connections to the Search service | `10` |
| `search.maxConnections` | The maximum number connections to the Search service | `100` |
| `search.maxOpenRequests` | The maximum number open requests to the Search service | `128` |

### Keys settings

Expand All @@ -178,6 +181,32 @@ See the [documentation](https://docs.2gis.com/en/on-premise/search) to learn abo
| `license.url` | Address of the License service v1. Ex: http://license.svc **Required** | `""` |
| `license.requestTimeout` | Timeout for requests to the License service | `1s` |

### Statistic settings

| Name | Description | Value |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `stat.request.enabled` | If statistic by request is enabled | `false` |
| `stat.request.buffer.lifetime` | Lifetime of request Statistic buffer | `5s` |
| `stat.request.buffer.sendTimeout` | Timeout between sending request statistic messages | `2s` |
| `stat.request.buffer.sendLimit` | The maximum number of request messages in the buffer before they are sent to the Statistic | `256` |
| `stat.search.enabled` | If statistic by search is enabled | `false` |
| `stat.search.buffer.lifetime` | Lifetime of search Statistic buffer | `5s` |
| `stat.search.buffer.sendTimeout` | Timeout between sending search statistic messages | `2s` |
| `stat.search.buffer.sendLimit` | The maximum number of search messages in the buffer before they are sent to the Statistic | `256` |
| `stat.client.url` | URL of the statistic service. Ex: http(s)://stat.svc | `""` |
| `stat.client.connectingTimeout` | The time period within which the TCP connecting process must be completed | `500ms` |
| `stat.client.idleTimeout` | The time after which an idle connection will be automatically closed | `250ms` |
| `stat.client.minConnections` | The minimum number of parallel connections that a pool should keep alive ("hot") | `1` |
| `stat.client.maxConnections` | The maximum number of parallel connections that a connection pool to a single host endpoint is allowed to establish. Must be greater than zero | `2` |
| `stat.client.maxOpenRequests` | The maximum number of open requests accepted into the pool across all materializations of any of its client flows | `4` |
| `stat.client.maxRetries` | The maximum number of times failed requests are attempted again, (if the request can be safely retried) before giving up and returning an error | `4` |
| `stat.client.maxConnectionLifetime` | The maximum duration for a connection to be kept alive | `5m` |
| `stat.client.baseConnectionBackoff` | The minimum duration to backoff new connection attempts after the previous connection attempt failed | `500ms` |
| `stat.client.maxConnectionBackoff` | Maximum backoff duration between failed connection attempts | `10s` |
| `stat.client.responseTimeout` | The time period after the response was dispatched | `250ms` |
| `stat.dispatcher.fixedPoolSize` | Fixed number of threads used | `1` |
| `stat.dispatcher.throughput` | Throughput defines the maximum number of messages to be processed per actor before the thread jumps to the next actor | `4` |

### Kubernetes Importer job settings

| Name | Description | Value |
Expand Down
1 change: 1 addition & 0 deletions charts/catalog-api/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ spec:
{{- include "catalog.env.search" . | nindent 12 }}
{{- include "catalog.env.keys" . | nindent 12 }}
{{- include "catalog.env.license" . | nindent 12 }}
{{- include "catalog.env.stat" . | nindent 12 }}
{{- if .Values.customCAs.bundle }}
{{- include "catalog.env.custom.ca.path" . | nindent 12 }}
{{- end }}
Expand Down
51 changes: 51 additions & 0 deletions charts/catalog-api/templates/helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ onprem
value: "{{ required "A valid .Values.search.url entry required" .Values.search.url }}"
- name: CATALOG_SAPPHIRE_CONNECTION_TIMEOUT
value: "{{ .Values.search.connectTimeout }}"
- name: CATALOG_SAPPHIRE_MIN_CONNECTIONS
value: "{{ .Values.search.minConnections }}"
- name: CATALOG_SAPPHIRE_MAX_CONNECTIONS
value: "{{ .Values.search.maxConnections }}"
- name: CATALOG_SAPPHIRE_MAX_OPEN_REQUESTS
value: "{{ .Values.search.maxOpenRequests }}"
{{- end }}

{{- define "catalog.env.keys" -}}
Expand Down Expand Up @@ -182,6 +188,51 @@ onprem
value: "{{ .Values.license.requestTimeout }}"
{{- end }}

{{- define "catalog.env.stat" -}}
- name: CATALOG_BSS_ENDPOINT
value: "{{ .Values.stat.url }}"
- name: CATALOG_BSS_REQUEST_ENABLED
value: "{{ .Values.stat.request.enabled }}"
- name: CATALOG_BSS_REQUEST_BUFFER_LIFETIME
value: "{{ .Values.stat.request.buffer.lifetime }}"
- name: CATALOG_BSS_REQUEST_BUFFER_SEND_TIMEOUT
value: "{{ .Values.stat.request.buffer.sendTimeout }}"
- name: CATALOG_BSS_REQUEST_BUFFER_SEND_LIMIT
value: "{{ .Values.stat.request.buffer.sendLimit }}"
- name: CATALOG_BSS_SEARCH_ENABLED
value: "{{ .Values.stat.search.enabled }}"
- name: CATALOG_BSS_SEARCH_BUFFER_LIFETIME
value: "{{ .Values.stat.search.buffer.lifetime }}"
- name: CATALOG_BSS_SEARCH_BUFFER_SEND_TIMEOUT
value: "{{ .Values.stat.search.buffer.sendTimeout }}"
- name: CATALOG_BSS_SEARCH_BUFFER_SEND_LIMIT
value: "{{ .Values.stat.search.buffer.sendLimit }}"
- name: CATALOG_BSS_CONNECTING_TIMEOUT
value: "{{ .Values.stat.client.connectingTimeout }}"
- name: CATALOG_BSS_IDLE_TIMEOUT
value: "{{ .Values.stat.client.Idle_timeout }}"
- name: CATALOG_BSS_MIN_CONNECTIONS
value: "{{ .Values.stat.client.minConnections }}"
- name: CATALOG_BSS_MAX_CONNECTIONS
value: "{{ .Values.stat.client.maxConnections }}"
- name: CATALOG_BSS_MAX_OPEN_REQUESTS
value: "{{ .Values.stat.client.maxOpenRequests }}"
- name: CATALOG_BSS_MAX_RETRIES
value: "{{ .Values.stat.client.maxRetries }}"
- name: CATALOG_BSS_CONNECTION_LIFETIME
value: "{{ .Values.stat.client.maxConnectionLifetime }}"
- name: CATALOG_BSS_BASE_CONNECTION_BACKOFF
value: "{{ .Values.stat.client.baseConnectionBackoff }}"
- name: CATALOG_BSS_MAX_CONNECTION_BACKOFF
value: "{{ .Values.stat.client.maxConnectionBackoff }}"
- name: CATALOG_BSS_RESPONSE_TIMEOUT
value: "{{ .Values.stat.client.responseTimeout }}"
- name: CATALOG_BSS_DISPATCHER_FIXED_POOL_SIZE
value: "{{ .Values.stat.dispatcher.fixedPoolSize }}"
- name: CATALOG_BSS_DISPATCHER_THROUGHPUT
value: "{{ .Values.stat.dispatcherThroughput }}"
{{- end }}

{{- define "catalog.env.importer" -}}
- name: IMPORTER_DB_CATALOG_SCHEMA
value: "{{ include "catalog.manifestCode" . }}"
Expand Down
58 changes: 58 additions & 0 deletions charts/catalog-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,16 @@ api:

# @param search.url URL of the Search service, ex: http://{search-api}.svc. This URL should be accessible from all the pods within your Kubernetes cluster. **Required**
# @param search.connectTimeout Timeout for connect to the Search service
# @param search.minConnections The minimum number connections to the Search service
# @param search.maxConnections The maximum number connections to the Search service
# @param search.maxOpenRequests The maximum number open requests to the Search service

search:
url: ''
connectTimeout: 300ms
minConnections: 10
maxConnections: 100
maxOpenRequests: 128

# @section Keys settings

Expand Down Expand Up @@ -251,6 +257,58 @@ license:
url: ''
requestTimeout: 1s

# @section Statistic settings

# @param stat.request.enabled If statistic by request is enabled
# @param stat.request.buffer.lifetime Lifetime of request Statistic buffer
# @param stat.request.buffer.sendTimeout Timeout between sending request statistic messages
# @param stat.request.buffer.sendLimit The maximum number of request messages in the buffer before they are sent to the Statistic
# @param stat.search.enabled If statistic by search is enabled
# @param stat.search.buffer.lifetime Lifetime of search Statistic buffer
# @param stat.search.buffer.sendTimeout Timeout between sending search statistic messages
# @param stat.search.buffer.sendLimit The maximum number of search messages in the buffer before they are sent to the Statistic
# @param stat.client.url URL of the statistic service. Ex: http(s)://stat.svc
# @param stat.client.connectingTimeout The time period within which the TCP connecting process must be completed
# @param stat.client.idleTimeout The time after which an idle connection will be automatically closed
# @param stat.client.minConnections The minimum number of parallel connections that a pool should keep alive ("hot")
# @param stat.client.maxConnections The maximum number of parallel connections that a connection pool to a single host endpoint is allowed to establish. Must be greater than zero
# @param stat.client.maxOpenRequests The maximum number of open requests accepted into the pool across all materializations of any of its client flows
# @param stat.client.maxRetries The maximum number of times failed requests are attempted again, (if the request can be safely retried) before giving up and returning an error
# @param stat.client.maxConnectionLifetime The maximum duration for a connection to be kept alive
# @param stat.client.baseConnectionBackoff The minimum duration to backoff new connection attempts after the previous connection attempt failed
# @param stat.client.maxConnectionBackoff Maximum backoff duration between failed connection attempts
# @param stat.client.responseTimeout The time period after the response was dispatched
# @param stat.dispatcher.fixedPoolSize Fixed number of threads used
# @param stat.dispatcher.throughput Throughput defines the maximum number of messages to be processed per actor before the thread jumps to the next actor

stat:
request:
enabled: false
buffer:
lifetime: 5s
sendTimeout: 2s
sendLimit: 256
search:
enabled: false
buffer:
lifetime: 5s
sendTimeout: 2s
sendLimit: 256
client:
url: ''
connectingTimeout: 500ms
idleTimeout: 250ms
minConnections: 1
maxConnections: 2
maxOpenRequests: 4
maxRetries: 4
maxConnectionLifetime: 5m
baseConnectionBackoff: 500ms
maxConnectionBackoff: 10s
responseTimeout: 250ms
dispatcher:
fixedPoolSize: 1
throughput: 4

# @section Kubernetes Importer job settings

Expand Down
2 changes: 1 addition & 1 deletion charts/citylens/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type: application
description: A Helm chart for Kubernetes to deploy Citylens service

version: 1.26.0
appVersion: 1.11.1
appVersion: 1.12.0

maintainers:
- name: 2gis
Expand Down
8 changes: 4 additions & 4 deletions charts/citylens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ See the [documentation]() to learn about:
| Name | Description | Value |
| ---------------------- | ------------ | ------------------------------ |
| `api.image.repository` | Repository. | `2gis-on-premise/citylens-api` |
| `api.image.tag` | Tag. | `1.11.1` |
| `api.image.tag` | Tag. | `1.12.0` |
| `api.image.pullPolicy` | Pull Policy. | `IfNotPresent` |

### Resources settings
Expand Down Expand Up @@ -133,7 +133,7 @@ See the [documentation]() to learn about:
| Name | Description | Value |
| ---------------------- | ------------ | ------------------------------ |
| `web.image.repository` | Repository. | `2gis-on-premise/citylens-web` |
| `web.image.tag` | Tag. | `1.11.1` |
| `web.image.tag` | Tag. | `1.12.0` |
| `web.image.pullPolicy` | Pull Policy. | `IfNotPresent` |

### Resources settings
Expand Down Expand Up @@ -351,7 +351,7 @@ See the [documentation]() to learn about:
| Name | Description | Value |
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| `worker.dashboardBatchEvents.image.repository` | Repository. | `2gis-on-premise/citylens-workers` |
| `worker.dashboardBatchEvents.image.tag` | Tag. | `1.11.1` |
| `worker.dashboardBatchEvents.image.tag` | Tag. | `1.12.0` |
| `worker.dashboardBatchEvents.image.pullPolicy` | Pull Policy. | `IfNotPresent` |
| `worker.dashboardBatchEvents.logLevel` | Worker's log level. | `INFO` |
| `worker.dashboardBatchEvents.revisionHistoryLimit` | Revision history limit (used for [rolling back](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) a deployment). | `3` |
Expand All @@ -369,7 +369,7 @@ See the [documentation]() to learn about:
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| `migrations.enabled` | If migrations needed. | `true` |
| `migrations.image.repository` | Repository. | `2gis-on-premise/citylens-database` |
| `migrations.image.tag` | Tag. | `1.11.0` |
| `migrations.image.tag` | Tag. | `1.12.0` |
| `migrations.image.pullPolicy` | Pull Policy | `IfNotPresent` |
| `migrations.resources.requests.cpu` | A CPU request. | `100m` |
| `migrations.resources.requests.memory` | A memory request. | `1Gi` |
Expand Down
3 changes: 3 additions & 0 deletions charts/citylens/templates/api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ data:
show_docs: {{ .Values.api.showDocs }}
log_level: {{ .Values.api.logLevel }}
metrics_app_name: {{ .Values.api.metricsAppName }}
{{- if .Values.api.routesApiBaseUrl }}
routes_api_base_url: {{ .Values.api.routesApiBaseUrl | squote }}
{{- end }}
Loading
Loading