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
Eteri
slapos
Commits
16b30cbb
Commit
16b30cbb
authored
Jul 10, 2018
by
Eteri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use keep-alive true in fluentd config file
parent
02b48d26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
software/erp5testnode/testsuite/fluentTest/buildout.hash.cfg
software/erp5testnode/testsuite/fluentTest/buildout.hash.cfg
+1
-1
software/erp5testnode/testsuite/fluentTest/templates/fluentd-conf.cnf.in
...stnode/testsuite/fluentTest/templates/fluentd-conf.cnf.in
+1
-0
software/erp5testnode/testsuite/fluentTest/tests/test.py
software/erp5testnode/testsuite/fluentTest/tests/test.py
+4
-7
No files found.
software/erp5testnode/testsuite/fluentTest/buildout.hash.cfg
View file @
16b30cbb
...
...
@@ -20,7 +20,7 @@ md5sum = 45c4adaae557bed5c25c24f4c4506b3d
[template-fluentd-config]
filename = templates/fluentd-conf.cnf.in
md5sum = 8
8235b3b15cccc615acb6a9f9029684a
md5sum = 8
5d7770376821f35c0cce782b716efc3
[template-caddy-service]
filename = templates/template-caddy-service.sh.in
...
...
software/erp5testnode/testsuite/fluentTest/templates/fluentd-conf.cnf.in
View file @
16b30cbb
...
...
@@ -36,6 +36,7 @@
#buffer_path "#{ENV['HOME']/var}"
flush_interval 1s
num_threads 1
use_keep_alive true
</match>
...
...
software/erp5testnode/testsuite/fluentTest/tests/test.py
View file @
16b30cbb
...
...
@@ -78,6 +78,7 @@ class TestIngestion(FluentdPluginTestCase):
print
(
"serever shutdown"
)
def
setUp
(
self
):
self
.
caddy_process
=
psutil
.
Process
(
int
(
caddy_pid
))
self
.
startServer
()
def
tearDown
(
self
):
...
...
@@ -88,6 +89,7 @@ class TestIngestion(FluentdPluginTestCase):
simple get request to be sure that server is up
'''
print
(
"############## TEST 1 ##############"
)
print
(
"conn_before = %s"
%
str
(
self
.
caddy_process
.
connections
()))
url
=
self
.
computer_partition
.
getConnectionParameterDict
()[
'url'
]
resp
=
requests
.
get
(
url
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
...
...
@@ -104,20 +106,15 @@ class TestIngestion(FluentdPluginTestCase):
def
test_keepAlive_on
(
self
):
print
(
"############## TEST 3 ##############"
)
caddy_process
=
psutil
.
Process
(
int
(
caddy_pid
))
port
=
9443
start_fluentd_cat
(
self
,
"dummyInputDelayCheckKeepAlive"
,
"tag_test_3"
)
time
.
sleep
(
10
)
self
.
assertEqual
(
[
'ESTABLISHED'
],
[
conn
.
status
for
conn
in
caddy_process
.
connections
(
'inet'
)
[
conn
.
status
for
conn
in
self
.
caddy_process
.
connections
(
'inet'
)
if
len
(
conn
.
raddr
)
>
1
and
conn
.
laddr
.
port
==
4443
])
print
(
"conn_afet = %s"
%
str
(
self
.
caddy_process
.
connections
()))
#for conn in caddy_process.connections('inet'):
# if len(conn.raddr) > 1 and conn.laddr.port == 4443:
# self.assertEqual('ESTABLISHED', conn.status) #conn.status == 'ESTABLISHED' :
def
test_ingest_with_15mins_delay
(
self
):
'''
...
...
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