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

#OB-553 fix: Deployment issue fixes for OCI #1634

Merged
merged 50 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1394e66
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 20, 2023
a6fe4af
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 20, 2023
16fe19c
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 20, 2023
f6a9ce2
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 20, 2023
03a8bd5
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
6f6213e
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
fda6588
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
56661bf
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
661b05a
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
01858fa
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
33c89a3
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 21, 2023
23cb2f8
added cloud_storage_privatereports_bucketname variable
SadanandGowda Nov 21, 2023
b806412
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 22, 2023
521e900
Merge pull request #1 from SadanandGowda/csp_migration
sowmya-dixit Nov 22, 2023
d78959f
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 22, 2023
0e03d1b
Merge branch 'release-5.2.0' of github.com:sowmya-dixit/sunbird-data-…
sowmya-dixit Nov 22, 2023
e2208fb
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Nov 22, 2023
7719246
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 4, 2023
7927433
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 4, 2023
a558861
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 4, 2023
cd1fac6
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 4, 2023
5b2ad02
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 7, 2023
9493def
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 11, 2023
72d858c
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 12, 2023
1148923
#OB-553 fix: Deployment issue fixes for OCI - Secor
sowmya-dixit Dec 12, 2023
f84ee02
#OB-553 fix: Deployment issue fixes for OCI - Secor
sowmya-dixit Dec 12, 2023
4c85ce9
#OB-553 fix: Deployment issue fixes for OCI - Secor
sowmya-dixit Dec 12, 2023
9d9f233
#OB-553 fix: Deployment issue fixes for OCI - Secor
sowmya-dixit Dec 12, 2023
90fcbe1
#OB-553 fix: Deployment issue fixes for OCI - Secor
sowmya-dixit Dec 12, 2023
c2c6b01
Merge branch 'release-5.2.0' of github.com:Sunbird-Obsrv/sunbird-data…
sowmya-dixit Dec 12, 2023
638b54d
#OB-553 fix: Deployment issue fixes for OCI - Secor
sowmya-dixit Dec 12, 2023
44a167b
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
5eb55a9
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
b0a8e26
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
eeb7318
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
983f7c0
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
9cdb8a1
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
fac5796
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
e0c98b0
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
224a28d
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
8d9bf15
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
eea48ed
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
38fa220
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
aaa4d9c
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
c0b1257
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 14, 2023
7816ef7
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 15, 2023
c7485ee
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 15, 2023
01c76bb
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 15, 2023
8a3ca37
#OB-553 fix: Deployment issue fixes for OCI
sowmya-dixit Dec 18, 2023
b55b126
Merge branch 'release-5.2.0' of github.com:Sunbird-Obsrv/sunbird-data…
sowmya-dixit Dec 18, 2023
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
8 changes: 4 additions & 4 deletions ansible/inventory/env/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ druid_report_token: "Bearer {{ sunbird_api_auth_token }}"

#redis multiprocess config
content_port: 6379
device_port: 6380
user_port: 6381
dialcode_port: 6382
device_port: 6379
user_port: 6379
dialcode_port: 6379

### kafka and zookeeper ip vars and being used in kafka topiccreation role.
ingestion_zookeeper_ip: "{{ groups['ingestion-cluster-zookeeper'][0] }}"
Expand All @@ -190,7 +190,7 @@ s3_storage_key: "{{ sunbird_private_s3_storage_key }}"
s3_storage_secret: "{{ sunbird_private_s3_storage_secret }}"
s3_storage_endpoint: ""
s3_request_signature_version: AWS4-HMAC-SHA256
s3_path_style_access: false
s3_path_style_access: true
s3_https_only: false
s3_default_bucket_location: ""
s3_storage_container: ""
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dockerhub: {{ dockerhub }}
repository: {{ datapipeline_repository|default('data-pipeline') }}
image_tag: {{ image_tag }}

checkpoint_store_type: {{ cloud_service_provider }}
checkpoint_store_type: {{ druid_storage_type }}
cloud_storage_key: {{ cloud_private_storage_accountname }}
cloud_storage_secret: {{ cloud_private_storage_secret }}
cloud_storage_endpoint: {{ cloud_private_storage_endpoint }}
Expand Down
1 change: 1 addition & 0 deletions data-pipeline-flink/sunbird-dp-distribution/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ USER flink
RUN tar -xvf /tmp/sunbird-dp-distribution-1.0.tar.gz -C $FLINK_HOME/lib/
RUN mkdir $FLINK_HOME/plugins/s3-fs-presto
RUN cp $FLINK_HOME/opt/flink-s3-fs-presto-1.13.5.jar $FLINK_HOME/plugins/s3-fs-presto/
RUN cp $FLINK_HOME/opt/flink-s3-fs-presto-1.13.5.jar $FLINK_HOME/lib/flink-aaa-s3-fs-presto-1.13.5.jar
USER root
RUN rm -f /tmp/sunbird-dp-distribution-1.0.tar.gz
USER flink
5 changes: 4 additions & 1 deletion kubernetes/ansible/roles/flink-jobs-deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ postgres_max_connections: 2
azure_account: "{{ cloud_private_storage_accountname }}"
azure_secret: "{{ cloud_private_storage_secret }}"
cloud_storage_flink_bucketname: dev-data-store

s3_path_style_access: true

flink_dp_storage_container: ""
checkpoint_store_type: gcloud
checkpoint_store_type: "{{ druid_storage_type }}"
checkpoint_interval: 60000
checkpoint_pause_between_seconds: 5000
checkpoint_compression_enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,20 @@ spec:
command: ["/opt/flink/bin/standalone-job.sh"]
args: ["start-foreground",
"--job-classname={{ .Values.job_classname }}",
{{- if eq .Values.checkpoint_store_type "azure" }}
"-Dfs.azure.account.key.{{ .Values.cloud_storage_key }}.blob.core.windows.net={{ .Values.cloud_storage_secret }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "s3" }}
"-Ds3.access-key={{ .Values.cloud_storage_key }}",
"-Ds3.secret-key={{ .Values.cloud_storage_secret }}",
"-Ds3.endpoint={{ .Values.cloud_storage_endpoint }}",
"-Ds3.path.style.access={{ .Values.s3_path_style_access }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "gcloud" }}
"-Dfs.gs.auth.client.id={{ .Values.cloud_storage_key }}",
"-Dfs.gs.auth.client.secret={{ .Values.cloud_storage_secret }}",
{{- if eq .Values.checkpoint_store_type "azure" }}
"-Dfs.azure.account.key.{{ .Values.azure_account }}.blob.core.windows.net={{ .Values.azure_secret }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "s3" }}
"-Dpresto.s3.access-key={{ .Values.s3_access_key }}",
"-Dpresto.s3.secret-key={{ .Values.s3_secret_key }}",
"-Dpresto.s3.endpoint={{ .Values.s3_endpoint }}",
"-Dpresto.s3.path.style.access={{ .Values.s3_path_style_access }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "gcloud" }}
"-Dfs.gs.auth.client.id={{ .Values.s3_access_key }}",
"-Dfs.gs.auth.client.secret={{ .Values.s3_access_key }}",
"-Dfs.gs.project.id={{ .Values.cloud_storage_project_id }}",
{{- end }}
{{- end }}
"-Dweb.submit.enable=false",
"-Dmetrics.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReporter",
"-Dmetrics.reporter.prom.port={{ .Values.jobmanager.prom_port }}",
Expand Down Expand Up @@ -196,26 +196,26 @@ spec:
workingDir: {{ .Values.taskmanager.flink_work_dir }}
command: ["/opt/flink/bin/taskmanager.sh"]
args: ["start-foreground",
{{- if eq .Values.checkpoint_store_type "azure" }}
"-Dfs.azure.account.key.{{ .Values.cloud_storage_key }}.blob.core.windows.net={{ .Values.cloud_storage_secret }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "s3" }}
"-Ds3.access-key={{ .Values.cloud_storage_key }}",
"-Ds3.secret-key={{ .Values.cloud_storage_secret }}",
"-Ds3.endpoint={{ .Values.cloud_storage_endpoint }}",
"-Ds3.path.style.access={{ .Values.s3_path_style_access }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "gcloud" }}
"-Dfs.gs.auth.client.id={{ .Values.cloud_storage_key }}",
"-Dfs.gs.auth.client.secret={{ .Values.cloud_storage_secret }}",
"-Dfs.gs.project.id={{ .Values.cloud_storage_project_id }}",
{{- end }}
"-Dweb.submit.enable=false",
"-Dmetrics.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReporter",
"-Dmetrics.reporter.prom.host={{ .Release.Name }}-taskmanager",
"-Dmetrics.reporter.prom.port=9251-9260",
"-Djobmanager.rpc.address={{ .Release.Name }}-jobmanager",
"-Dtaskmanager.rpc.port={{ .Values.taskmanager.rpc_port }}"]
{{- if eq .Values.checkpoint_store_type "azure" }}
"-Dfs.azure.account.key.{{ .Values.azure_account }}.blob.core.windows.net={{ .Values.azure_secret }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "s3" }}
"-Dpresto.s3.access-key={{ .Values.s3_access_key }}",
"-Dpresto.s3.secret-key={{ .Values.s3_secret_key }}",
"-Dpresto.s3.endpoint={{ .Values.s3_endpoint }}",
"-Dpresto.s3.path.style.access={{ .Values.s3_path_style_access }}",
{{- end }}
{{- if eq .Values.checkpoint_store_type "gcloud" }}
"-Dfs.gs.auth.client.id={{ .Values.s3_access_key }}",
"-Dfs.gs.auth.client.secret={{ .Values.s3_access_key }}",
"-Dfs.gs.project.id={{ .Values.cloud_storage_project_id }}",
{{- end }}
"-Dweb.submit.enable=false",
"-Dmetrics.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReporter",
"-Dmetrics.reporter.prom.host={{ .Release.Name }}-taskmanager",
"-Dmetrics.reporter.prom.port=9251-9260",
"-Djobmanager.rpc.address={{ .Release.Name }}-jobmanager",
"-Dtaskmanager.rpc.port={{ .Values.taskmanager.rpc_port }}"]
ports:
- containerPort: {{ .Values.taskmanager.rpc_port }}
name: rpc
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/helm_charts/datapipeline_jobs/values.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ imagepullsecrets: {{ imagepullsecrets }}
dockerhub: {{ dockerhub }}
repository: {{flink_repository|default('sunbird-datapipeline')}}
image_tag: {{ image_tag }}
checkpoint_store_type: {{ checkpoint_store_type }}
checkpoint_store_type: {{ druid_storage_type }}
azure_account: {{ azure_account }}
azure_secret: {{ azure_secret }}
s3_access_key: {{ cloud_private_storage_accountname }}
Expand Down Expand Up @@ -154,15 +154,15 @@ base_config: |
statebackend {
blob {
storage {
account = "{% if checkpoint_store_type == "azure" %}{{ azure_account }}.blob.core.windows.net{% elif checkpoint_store_type == "s3" %}{{ flink_dp_storage_container }}{% elif checkpoint_store_type == "gcloud" %}{{ flink_dp_storage_container }}{% endif %}"
account = "{% if checkpoint_store_type == "azure" %}{{ azure_account }}.blob.core.windows.net{% elif checkpoint_store_type == "s3" %}{{ cloud_private_storage_accountname }}{% elif checkpoint_store_type == "gcloud" %}{{ flink_dp_storage_container }}{% endif %}"
container = "{{ cloud_storage_flink_bucketname }}"
checkpointing.dir = "checkpoint"
}
}
{% if checkpoint_store_type == "azure" %}
base.url = "wasbs://"${job.statebackend.blob.storage.container}"@"${job.statebackend.blob.storage.account}"/"${job.statebackend.blob.storage.checkpointing.dir}
{% elif checkpoint_store_type == "s3" %}
base.url = "s3://"${job.statebackend.blob.storage.account}"/"${job.statebackend.blob.storage.container}"/"${job.statebackend.blob.storage.checkpointing.dir}
base.url = "s3://"${job.statebackend.blob.storage.container}"/"${job.statebackend.blob.storage.checkpointing.dir}
{% elif checkpoint_store_type == "gcloud" %}
base.url = "gs://"${job.statebackend.blob.storage.account}"/"${job.statebackend.blob.storage.container}"/"${job.statebackend.blob.storage.checkpointing.dir}
{% endif %}
Expand Down