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
Romain Courteaud
slapos
Commits
5b2556a1
Commit
5b2556a1
authored
Jul 24, 2024
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rapid-cdn: Sync ATS log retention to configuration:rotate-num
parent
fb866cd1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
software/rapid-cdn/buildout.hash.cfg
software/rapid-cdn/buildout.hash.cfg
+1
-1
software/rapid-cdn/instance-frontend.cfg.in
software/rapid-cdn/instance-frontend.cfg.in
+1
-1
software/rapid-cdn/test/test.py
software/rapid-cdn/test/test.py
+2
-1
No files found.
software/rapid-cdn/buildout.hash.cfg
View file @
5b2556a1
...
...
@@ -22,7 +22,7 @@ md5sum = 5784bea3bd608913769ff9a8afcccb68
[profile-frontend]
filename = instance-frontend.cfg.in
md5sum =
b3c5694042035f13832479dca3481597
md5sum =
af6c2d8dfa36c9012c6ef905689972ff
[profile-master]
filename = instance-master.cfg.in
...
...
software/rapid-cdn/instance-frontend.cfg.in
View file @
5b2556a1
...
...
@@ -651,7 +651,7 @@ output = ${directory:bin}/trafficserver-rotate
xz_binary = {{ software_parameter_dict['xz_location'] ~ '/bin/xz' }}
pattern = *.old
# days to keep log files
keep_days =
365
keep_days =
${configuration:rotate-num}
extra-context =
raw find_executable {{ software_parameter_dict['findutils'] }}/bin/find
...
...
software/rapid-cdn/test/test.py
View file @
5b2556a1
...
...
@@ -2111,7 +2111,8 @@ class TestSlave(SlaveHttpFrontendTestCase, TestDataMixin, AtsMixin):
)
# check retention
old_time
=
time
.
time
()
-
(
400
*
24
*
3600
)
# 4000 is default configuration:rotate-num, so make the log a bit older
old_time
=
time
.
time
()
-
(
4010
*
24
*
3600
)
os
.
utime
(
os
.
path
.
join
(
ats_logrotate_dir
,
older_file_name
+
'.xz'
),
(
old_time
,
old_time
))
...
...
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