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(mojaloop/#3686): update ALS cache config #595

Merged
merged 3 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 14 additions & 3 deletions account-lookup-service/chart-admin/configs/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@
},
"DISPLAY_ROUTES": {{ .Values.config.display_routes }},
"RUN_MIGRATIONS": {{ .Values.config.run_migrations }},
"ENDPOINT_CACHE_CONFIG": {
"expiresIn": {{ .Values.config.end_point_cache.expiresIn }},
"generateTimeout": {{ .Values.config.end_point_cache.generateTimeout }}
"CENTRAL_SHARED_ENDPOINT_CACHE_CONFIG": {
"expiresIn": {{ .Values.config.central_shared_end_point_cache.expiresIn }},
"generateTimeout": {{ .Values.config.central_shared_end_point_cache.generateTimeout }},
"getDecoratedValue": {{ .Values.config.central_shared_end_point_cache.getDecoratedValue }}
},
"CENTRAL_SHARED_PARTICIPANT_CACHE_CONFIG": {
"expiresIn": {{ .Values.config.central_shared_participant_cache.expiresIn }},
"generateTimeout": {{ .Values.config.central_shared_participant_cache.generateTimeout }},
"getDecoratedValue": {{ .Values.config.central_shared_participant_cache.getDecoratedValue }}
},
"GENERAL_CACHE_CONFIG": {
"CACHE_ENABLED": {{ .Values.config.general_cache.enabled }},
"MAX_BYTE_SIZE": {{ .Values.config.general_cache.maxByteSize }},
"EXPIRES_IN_MS": {{ .Values.config.general_cache.expiresIn }}
},
"ERROR_HANDLING": {
"includeCauseExtension": {{ .Values.config.error_handling.include_cause_extension }},
Expand Down
11 changes: 10 additions & 1 deletion account-lookup-service/chart-admin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,18 @@ config:
kafka_port: 9092
kafka_partitioner: 'murmur2_random'

end_point_cache:
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: false
maxByteSize: 10000000
expiresIn: 61000


## DB Configuration
Expand Down
17 changes: 14 additions & 3 deletions account-lookup-service/chart-service/configs/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@
},
"DISPLAY_ROUTES": {{ .Values.config.display_routes }},
"RUN_MIGRATIONS": {{ .Values.config.run_migrations }},
"ENDPOINT_CACHE_CONFIG": {
"expiresIn": {{ .Values.config.end_point_cache.expiresIn }},
"generateTimeout": {{ .Values.config.end_point_cache.generateTimeout }}
"CENTRAL_SHARED_ENDPOINT_CACHE_CONFIG": {
"expiresIn": {{ .Values.config.central_shared_end_point_cache.expiresIn }},
"generateTimeout": {{ .Values.config.central_shared_end_point_cache.generateTimeout }},
"getDecoratedValue": {{ .Values.config.central_shared_end_point_cache.getDecoratedValue }}
},
"CENTRAL_SHARED_PARTICIPANT_CACHE_CONFIG": {
"expiresIn": {{ .Values.config.central_shared_participant_cache.expiresIn }},
"generateTimeout": {{ .Values.config.central_shared_participant_cache.generateTimeout }},
"getDecoratedValue": {{ .Values.config.central_shared_participant_cache.getDecoratedValue }}
},
"GENERAL_CACHE_CONFIG": {
"CACHE_ENABLED": {{ .Values.config.general_cache.enabled }},
"MAX_BYTE_SIZE": {{ .Values.config.general_cache.maxByteSize }},
"EXPIRES_IN_MS": {{ .Values.config.general_cache.expiresIn }}
},
"SWITCH_ENDPOINT": "http://{{ (default .Values.config.central_services_host $centralServicesHost) }}:{{ .Values.config.central_services_port }}",
"ERROR_HANDLING": {
Expand Down
11 changes: 10 additions & 1 deletion account-lookup-service/chart-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,18 @@ config:
kafka_port: 9092
kafka_partitioner: 'murmur2_random'

end_point_cache:
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: false
maxByteSize: 10000000
expiresIn: 61000

# Protocol versions used for validating (VALIDATELIST) incoming FSPIOP API Headers (Content-type, Accept),
# and for generating requests/callbacks from the Switch itself (DEFAULT value)
Expand Down
22 changes: 20 additions & 2 deletions account-lookup-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,18 @@ account-lookup-service:
include_cause_extension: false
truncate_extensions: true

end_point_cache:
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: false
maxByteSize: 10000000
expiresIn: 61000

## DB Configuration
db_type: mysql
Expand Down Expand Up @@ -362,9 +371,18 @@ account-lookup-service-admin:
include_cause_extension: false
truncate_extensions: true

end_point_cache:
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: false
maxByteSize: 10000000
expiresIn: 61000

## DB Configuration
db_type: mysql
Expand Down
22 changes: 20 additions & 2 deletions mojaloop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,18 @@ account-lookup-service:
log_level: info
log_transport: file

end_point_cache:
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: true
maxByteSize: 10000000
expiresIn: 61000

error_handling:
include_cause_extension: false
Expand Down Expand Up @@ -540,9 +549,18 @@ account-lookup-service:
}
}

end_point_cache:
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: true
maxByteSize: 10000000
expiresIn: 61000

error_handling:
include_cause_extension: false
Expand Down