Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos
Commits
7c7d2e2c
Commit
7c7d2e2c
authored
Jul 30, 2024
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rapid-cdn: Fine tune promises
parent
0997fd97
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
4 deletions
+31
-4
software/rapid-cdn/buildout.hash.cfg
software/rapid-cdn/buildout.hash.cfg
+4
-4
software/rapid-cdn/instance-frontend.cfg.in
software/rapid-cdn/instance-frontend.cfg.in
+10
-0
software/rapid-cdn/instance-kedifa.cfg.in
software/rapid-cdn/instance-kedifa.cfg.in
+6
-0
software/rapid-cdn/instance-master.cfg.in
software/rapid-cdn/instance-master.cfg.in
+10
-0
software/rapid-cdn/instance-slave-list.cfg.in
software/rapid-cdn/instance-slave-list.cfg.in
+1
-0
No files found.
software/rapid-cdn/buildout.hash.cfg
View file @
7c7d2e2c
...
...
@@ -22,15 +22,15 @@ md5sum = 5784bea3bd608913769ff9a8afcccb68
[profile-frontend]
filename = instance-frontend.cfg.in
md5sum =
e83fcd7d5a18106697d4707c418b8ad1
md5sum =
87157fd061b1237574415009ae9ccc0e
[profile-master]
filename = instance-master.cfg.in
md5sum =
7e6c901b8cc892486c8673e20ef5d9ba
md5sum =
c3db9abe95992e96ef946b5acaddbbbb
[profile-slave-list]
filename = instance-slave-list.cfg.in
md5sum =
52b752dbac369a47f3f3114cca411851
md5sum =
0634ebd7d884f0083d8fdf8ab2af08f2
[profile-master-publish-slave-information]
filename = instance-master-publish-slave-information.cfg.in
...
...
@@ -102,7 +102,7 @@ md5sum = e82ccdb0b26552a1c88ff523d8fae24a
[profile-kedifa]
filename = instance-kedifa.cfg.in
md5sum =
107dc147d94d02d2084b97b8ec591831
md5sum =
7ce1ae2ec21a2aa385f16e406c6edc99
[template-frontend-haproxy-rsyslogd-conf]
_update_hash_filename_ = templates/frontend-haproxy-rsyslogd.conf.in
...
...
software/rapid-cdn/instance-frontend.cfg.in
View file @
7c7d2e2c
...
...
@@ -631,6 +631,7 @@ promise = check_socket_listening
name = trafficserver-port-listening.py
config-host = ${trafficserver-variable:local-ip}
config-port = ${trafficserver-variable:input-port}
config-report-anomaly = True
[trafficserver-ctl]
recipe = slapos.cookbook:wrapper
...
...
@@ -766,6 +767,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv4_https.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${configuration:port}
config-report-anomaly = True
[promise-frontend-haproxy-v4-http]
<= monitor-promise-base
...
...
@@ -773,6 +775,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv4_http.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${configuration:plain_http_port}
config-report-anomaly = True
[promise-frontend-haproxy-v6-https]
<= monitor-promise-base
...
...
@@ -780,6 +783,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv6_https.py
config-host = {{ instance_parameter_dict['ipv6-random'] }}
config-port = ${configuration:port}
config-report-anomaly = True
[promise-frontend-haproxy-v6-http]
<= monitor-promise-base
...
...
@@ -787,6 +791,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv6_http.py
config-host = {{ instance_parameter_dict['ipv6-random'] }}
config-port = ${configuration:plain_http_port}
config-report-anomaly = True
[promise-backend-haproxy-http]
<= monitor-promise-base
...
...
@@ -794,6 +799,7 @@ promise = check_socket_listening
name = backend_haproxy_http.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${backend-haproxy-configuration:http-port}
config-report-anomaly = True
[promise-backend-haproxy-https]
<= monitor-promise-base
...
...
@@ -801,6 +807,7 @@ promise = check_socket_listening
name = backend_haproxy_https.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${backend-haproxy-configuration:https-port}
config-report-anomaly = True
[backend-haproxy-configuration]
file = ${directory:etc}/backend-haproxy.cfg
...
...
@@ -1029,6 +1036,7 @@ name = backend-haproxy-statistic-frontend.py
config-http-code = 401
config-url =
${backend-haproxy-statistic-frontend:connection-secure_access}
config-report-anomaly = True
[slave-introspection-configuration-state]
<= jinja2-template-base
...
...
@@ -1097,6 +1105,7 @@ promise = check_socket_listening
name = slave_introspection_https.py
config-host = {{ instance_parameter_dict['ipv6-random'] }}
config-port = ${frontend-configuration:slave-introspection-https-port}
config-report-anomaly = True
[logrotate-entry-slave-introspection]
<= logrotate-entry-base
...
...
@@ -1128,6 +1137,7 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${logrotate-setup-validate:state-file}
config-state = empty
config-report-anomaly = True
[configuration]
{%- for key, value in instance_parameter_dict.items() -%}
...
...
software/rapid-cdn/instance-kedifa.cfg.in
View file @
7c7d2e2c
...
...
@@ -164,6 +164,7 @@ promise = check_socket_listening
name = expose-csr-ip-port-listening.py
config-host = ${expose-csr-configuration:ip}
config-port = ${expose-csr-configuration:port}
config-report-anomaly = True
[expose-csr]
recipe = slapos.cookbook:wrapper
...
...
@@ -227,6 +228,7 @@ name = kedifa-http-reply.py
config-http-code = 400
config-url = https://[${kedifa-config:ip}]:${kedifa-config:port}
config-ca-cert-file = ${kedifa-config:ca-certificate}
config-report-anomaly = True
[logrotate-entry-kedifa]
<= logrotate-entry-base
...
...
@@ -346,6 +348,7 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${logrotate-setup-validate:state-file}
config-state = empty
config-report-anomaly = True
[kedifa-auth-ready]
recipe = plone.recipe.command
...
...
@@ -359,5 +362,8 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${kedifa-auth-ready:output}
config-state = empty
config-report-anomaly = True
config-failure-amount = 2
config-result-count = 2
{%- endif -%} {# if instance_parameter_dict['slap-software-type'] == software_type #}
software/rapid-cdn/instance-master.cfg.in
View file @
7c7d2e2c
...
...
@@ -501,6 +501,7 @@ promise = check_url_available
name = check-backend-haproxy-statistic-url-frontend-node-{{ index + 1 }}.py
config-url =
{{ section_part }}:connection-backend-haproxy-statistic-url}
config-report-anomaly = True
{% endfor %}
#----------------------------
...
...
@@ -705,6 +706,7 @@ wrapper-path = ${directory:bin}/aikc-caucase-csr-sign-check
promise = check_command_execute
name = ${:_buildout_section_name_}.py
config-command = ${aikc-sign-promise-wrapper:wrapper-path}
config-report-anomaly = True
{% for csr in frontend_list + ['kedifa'] %}
[aikc-{{ csr }}-wrapper]
...
...
@@ -829,6 +831,7 @@ wrapper-path = ${directory:bin}/aibcc-caucase-csr-sign-check
promise = check_command_execute
name = ${:_buildout_section_name_}.py
config-command = ${aibcc-sign-promise-wrapper:wrapper-path}
config-report-anomaly = True
{% for csr in frontend_list %}
[aibcc-{{ csr }}-wrapper]
...
...
@@ -1000,6 +1003,7 @@ promise = check_socket_listening
name = master-introspection-server-ip-port-listening.py
config-host = ${master-introspection-server-configuration:ip}
config-port = ${master-introspection-server-configuration:port}
config-report-anomaly = True
[rejected-slave-promise]
<= monitor-promise-base
...
...
@@ -1008,6 +1012,9 @@ name = rejected-slave.py
config-filename = ${rejected-slave-json:output}
config-state = empty
config-url = ${rejected-slave-publish:url}
config-report-anomaly = False
config-failure-amount = 2
config-result-count = 2
[master-key-upload-url-ready]
recipe = slapos.recipe.build
...
...
@@ -1030,6 +1037,7 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${master-key-upload-url-ready:output}
config-state = empty
config-report-anomaly = True
[master-key-generate-auth-url-ready]
<= master-key-upload-url-ready
...
...
@@ -1038,6 +1046,7 @@ key = ${request-kedifa:connection-master-key-generate-auth-url}
[master-key-generate-auth-url-ready-promise]
<= master-key-upload-url-ready-promise
config-filename = ${master-key-generate-auth-url-ready:output}
config-report-anomaly = True
[master-key-download-url-ready]
<= master-key-upload-url-ready
...
...
@@ -1046,6 +1055,7 @@ key = ${request-kedifa:connection-master-key-download-url}
[master-key-download-url-ready-promise]
<= master-key-upload-url-ready-promise
config-filename = ${master-key-download-url-ready:output}
config-report-anomaly = True
[caucased-backend-client]
hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
...
...
software/rapid-cdn/instance-slave-list.cfg.in
View file @
7c7d2e2c
...
...
@@ -640,6 +640,7 @@ promise = check_socket_listening
name = expose-csr-ip-port-listening.py
config-host = ${expose-csr-configuration:ip}
config-port = ${expose-csr-configuration:port}
config-report-anomaly = True
[expose-csr]
recipe = slapos.cookbook:wrapper
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment