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
Titouan Soulard
slapos
Commits
f36c4308
Commit
f36c4308
authored
Apr 19, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors/amarisoft: Upgrade xlog to use logrotate
Rotate every 100MB over enb.xlog, enb.xlog.1, ... enb.xlog.9
parent
a168fea6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+2
-1
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+3
-1
software/ors-amarisoft/software-base.cfg
software/ors-amarisoft/software-base.cfg
+1
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
f36c4308
...
@@ -36,11 +36,11 @@ md5sum = e0b68a87238282568e0e04c792ec7288
...
@@ -36,11 +36,11 @@ md5sum = e0b68a87238282568e0e04c792ec7288
[template-enb]
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
0ce4903f550b494399062e90a4e0e3a3
md5sum =
ba704d02815e85f3ab30227f117c88ff
[template-gnb]
[template-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum =
84b1bd55e8887388cf5fd2cb7b5816d3
md5sum =
b2a1816ceb8e7f475e71454e5389d091
[template-core-network]
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
_update_hash_filename_ = instance-core-network.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
f36c4308
...
@@ -144,13 +144,14 @@ drb_stats_logspec = x.drb_stats/${:period}s
...
@@ -144,13 +144,14 @@ drb_stats_logspec = x.drb_stats/${:period}s
{%- else %}
{%- else %}
drb_stats_logspec =
drb_stats_logspec =
{%- endif %}
{%- endif %}
rotatespec = 100MB.9
logspec = ${:stats_logspec} ${:drb_stats_logspec}
logspec = ${:stats_logspec} ${:drb_stats_logspec}
websock = ws://127.0.1.2:9001
websock = ws://127.0.1.2:9001
xamari = {{ buildout_directory }}/bin/xamari
xamari = {{ buildout_directory }}/bin/xamari
logfile = ${monitor-directory:public}/enb.xlog
logfile = ${monitor-directory:public}/enb.xlog
inline =
inline =
#!/bin/sh
#!/bin/sh
exec ${:xamari} xlog
${:websock} ${:logspec} > ${:logfile
}
exec ${:xamari} xlog
--rotate ${:rotatespec} ${:websock} ${:logfile} ${:logspec
}
[xamari-xlog-service]
[xamari-xlog-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
...
...
software/ors-amarisoft/instance-gnb.jinja2.cfg
View file @
f36c4308
...
@@ -145,13 +145,15 @@ drb_stats_logspec = x.drb_stats/${:period}s
...
@@ -145,13 +145,15 @@ drb_stats_logspec = x.drb_stats/${:period}s
{%- else %}
{%- else %}
drb_stats_logspec =
drb_stats_logspec =
{%- endif %}
{%- endif %}
rotatespec = 100MB.9
logspec = ${:stats_logspec} ${:drb_stats_logspec}
logspec = ${:stats_logspec} ${:drb_stats_logspec}
logspec = ${:stats_logspec} ${:drb_stats_logspec}
websock = ws://127.0.1.2:9001
websock = ws://127.0.1.2:9001
xamari = {{ buildout_directory }}/bin/xamari
xamari = {{ buildout_directory }}/bin/xamari
logfile = ${monitor-directory:public}/gnb.xlog
logfile = ${monitor-directory:public}/gnb.xlog
inline =
inline =
#!/bin/sh
#!/bin/sh
exec ${:xamari} xlog
${:websock} ${:logspec} > ${:logfile
}
exec ${:xamari} xlog
--rotate ${:rotatespec} ${:websock} ${:logfile} ${:logspec
}
[xamari-xlog-service]
[xamari-xlog-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
...
...
software/ors-amarisoft/software-base.cfg
View file @
f36c4308
...
@@ -181,7 +181,7 @@ interpreter = pythonwitheggs
...
@@ -181,7 +181,7 @@ interpreter = pythonwitheggs
[xlte-repository]
[xlte-repository]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/kirr/xlte.git
repository = https://lab.nexedi.com/kirr/xlte.git
revision =
58220253
revision =
e716ab51
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
[xlte]
[xlte]
...
...
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