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

feat(server): support dedicated database #1728

Merged
merged 25 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
965410c
feat(server): support dedicated database
0fatal Dec 8, 2023
48de2d2
chore(build): add default deploy manifest
0fatal Dec 8, 2023
8b71531
chore(server): cannot change database type when update bundle
0fatal Dec 8, 2023
616189e
fix(server): fix import
0fatal Dec 11, 2023
b46ed35
feat(server): add dedicated database specs to bundle
0fatal Dec 11, 2023
950261f
fix(server): wait for app start for long time
0fatal Dec 11, 2023
152a4d6
fix monitor metrics label
0fatal Dec 12, 2023
66c4523
fix
0fatal Dec 13, 2023
324c8ec
change ddb capacity price unit
0fatal Dec 14, 2023
4263c87
filter ddb cpu/memory metrics labels
0fatal Dec 15, 2023
0632314
Merge remote-tracking branch 'upstream/main' into feat/mongo-isolation
maslow Dec 20, 2023
2f9d1bb
chore: merge upstream main
maslow Dec 20, 2023
5e1440b
refactor(build): change mongodb to kb mongodb
0fatal Dec 20, 2023
e0fbd8c
refactor dedicated database fields
0fatal Dec 21, 2023
ec89664
add assert and change db host
0fatal Dec 21, 2023
8adf28f
fix miss limit ratio
0fatal Dec 21, 2023
4dcacbd
add kb-mongodb service monitor
0fatal Dec 21, 2023
59abd5a
install jq first when deploy
0fatal Dec 21, 2023
ae6948f
cannot reduce ddb capacity
0fatal Dec 22, 2023
8f07c5e
add default databaseCapacity
0fatal Dec 22, 2023
fa10bf5
add empty field fallback
0fatal Dec 22, 2023
0c18585
project request resources of ddb to empty
0fatal Dec 22, 2023
1124f40
fix request resources
0fatal Dec 22, 2023
ae3344c
disabled ddb replicas change
0fatal Dec 22, 2023
f760217
change deploy manifest sa
0fatal Jan 2, 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
2 changes: 2 additions & 0 deletions build/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ USER 65532:65532
COPY charts ./charts
# COPY manifests ./manifests
COPY registry ./registry
COPY deploy-manifest ./deploy-manifest
COPY start.sh ./start.sh
COPY prometheus-helm.yaml ./prometheus-helm.yaml
COPY mongodb.yaml ./mongodb.yaml

ENV DOMAIN=127.0.0.1.nip.io
ENV NAMESPACE=laf-system
Expand Down
2 changes: 2 additions & 0 deletions build/charts/laf-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ spec:
value: {{ .Values.default_region.tls.wildcard_certificate_secret_name | quote}}
- name: DEFAULT_REGION_PROMETHEUS_URL
value: {{ .Values.default_region.prometheus_url }}
- name: DEFAULT_REGION_DEPLOY_MANIFEST
value: {{ .Values.default_region.deploy_manifest }}
- name: SITE_NAME
value: {{ .Values.siteName | quote}}
{{- with .Values.nodeSelector }}
Expand Down
16 changes: 16 additions & 0 deletions build/charts/laf-server/templates/rumtime-exporter.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.default_region.runtime_exporter_secret }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -92,3 +93,18 @@ spec:
expr: max_over_time(sum by (appid) (laf_runtime_cpu_limit{container!=""})[1h:])
- record: laf:billing:memory
expr: max_over_time(sum by (appid) (laf_runtime_memory_limit{container!=""})[1h:])
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kb-mongodb
spec:
endpoints:
- interval: 30s
path: /metrics
port: http-metrics
selector:
matchLabels:
app.kubernetes.io/name: mongodb
apps.kubeblocks.io/component-name: mongodb
{{- end }}
1 change: 1 addition & 0 deletions build/charts/laf-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ default_region:
runtime_exporter_secret: ""
# prometheus
prometheus_url: ""
deploy_manifest: ""
jwt:
secret: laf_server_abc123
expires_in: 7d
Expand Down
23 changes: 0 additions & 23 deletions build/charts/mongodb/.helmignore

This file was deleted.

24 changes: 0 additions & 24 deletions build/charts/mongodb/Chart.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions build/charts/mongodb/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions build/charts/mongodb/keyFile

This file was deleted.

13 changes: 0 additions & 13 deletions build/charts/mongodb/templates/NOTES.txt

This file was deleted.

62 changes: 0 additions & 62 deletions build/charts/mongodb/templates/_helpers.tpl

This file was deleted.

61 changes: 0 additions & 61 deletions build/charts/mongodb/templates/ingress.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions build/charts/mongodb/templates/secret.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions build/charts/mongodb/templates/service.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions build/charts/mongodb/templates/serviceaccount.yaml

This file was deleted.

Loading
Loading