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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
francois
slapos
Commits
e6936c4b
Commit
e6936c4b
authored
Jan 16, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
longrequest log as rss for zope
parent
cdd819f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
software/slapos-master/instance-zope.cfg.in
software/slapos-master/instance-zope.cfg.in
+28
-0
No files found.
software/slapos-master/instance-zope.cfg.in
View file @
e6936c4b
...
...
@@ -125,6 +125,34 @@ recipe = slapos.cookbook:cron.d
name = ${error-log-{{ node_id_base }}:script-name}
frequency = 30 * * * *
command = ${error-log-{{ node_id_base }}:rendered}
{% if not slapparameter_dict.get('longrequest-logger-interval', -1) < 0 -%}
# Generate log as rss for longrequest too
[longrequest-log-{{ node_id_base }}]
<= error-log-rss-base
script-name = {{ node_id_base }}_Longrequest_AsRSS
extra-context =
section log_file_list longrequestlog-{{ node_id_base }}-list
raw item_limit 2
raw hour_interval 2
raw rotate_time 48
raw type zope-longrequest
[{{ section('cron-entry-' ~ node_id_base ~ '-longrequestAsRss') }}]
<= cron
recipe = slapos.cookbook:cron.d
name = ${longrequest-log-{{ node_id_base }}:script-name}
frequency = 0 */2 * * *
command = ${longrequest-log-{{ node_id_base }}:rendered}
[longrequestlog-{{ node_id_base }}-list]
{% for i in range(slapparameter_dict['instance-count']) -%}
{% set name = 'zope-' ~ i -%}
{{ node_id_base ~ '-longrequest-' ~ i }} = {{ longrequest_logger_base_path ~ name ~ ".log" }}
{% endfor -%}
{% endif -%}
{# End if monitor -#}
{% endif -%}
[certificate-authority-common]
...
...
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