Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
f13a9bde
Commit
f13a9bde
authored
Nov 02, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed logger
parent
248dca54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
stack_monitoring.yml
docs/composer_files/stack_monitoring.yml
+3
-3
rpc_server.py
drip_planner2/src/rpc_server.py
+2
-2
No files found.
docs/composer_files/stack_monitoring.yml
View file @
f13a9bde
...
@@ -2,7 +2,7 @@ version: '3'
...
@@ -2,7 +2,7 @@ version: '3'
services
:
services
:
server
:
server
:
image
:
salmant/ul_monitoring_server_container_image2
image
:
salmant/ul_monitoring_server_container_image2
ports
:
ports
:
-
"
8080:8080"
-
"
8080:8080"
-
"
4242:4242"
-
"
4242:4242"
-
"
4245:4245"
-
"
4245:4245"
...
@@ -12,7 +12,7 @@ services:
...
@@ -12,7 +12,7 @@ services:
-
"
9160:9160"
-
"
9160:9160"
-
"
9042:9042"
-
"
9042:9042"
-
"
8012:8012"
-
"
8012:8012"
-
"
61621:61621"
-
"
61621:61621"
environment
:
environment
:
-
"
MONITORING_SERVER=server"
-
"
MONITORING_SERVER=server"
...
@@ -20,4 +20,4 @@ services:
...
@@ -20,4 +20,4 @@ services:
image
:
salmant/monitoring_agent
image
:
salmant/monitoring_agent
deploy
:
{
replicas
:
10
}
deploy
:
{
replicas
:
10
}
depends_on
:
[
server
]
depends_on
:
[
server
]
command
:
--monitoringServerIP=server
command
:
--monitoringServerIP=server
\ No newline at end of file
drip_planner2/src/rpc_server.py
View file @
f13a9bde
...
@@ -15,7 +15,7 @@ import logging
...
@@ -15,7 +15,7 @@ import logging
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
if
not
getattr
(
logger
,
'handler_set'
,
None
):
if
not
getattr
(
logger
,
'handler_set'
,
None
):
#
logger.setLevel(logging.INFO)
logger
.
setLevel
(
logging
.
INFO
)
h
=
logging
.
StreamHandler
()
h
=
logging
.
StreamHandler
()
formatter
=
logging
.
Formatter
(
'
%(asctime)
s -
%(name)
s -
%(levelname)
s -
%(message)
s'
)
formatter
=
logging
.
Formatter
(
'
%(asctime)
s -
%(name)
s -
%(levelname)
s -
%(message)
s'
)
h
.
setFormatter
(
formatter
)
h
.
setFormatter
(
formatter
)
...
@@ -94,7 +94,7 @@ if __name__ == "__main__":
...
@@ -94,7 +94,7 @@ if __name__ == "__main__":
# home = expanduser("~")
# home = expanduser("~")
# planner = DumpPlanner(home+"/workspace/DRIP/docs/input_tosca_files/BEIA_cardif2.yml")
# planner = DumpPlanner(home+"/workspace/DRIP/docs/input_tosca_files/BEIA_cardif2.yml")
# print planner.plan()
# print planner.plan()
logger
.
info
(
"Input args: "
+
sys
.
argv
)
logger
.
info
(
"Input args: "
+
sys
.
argv
[
0
]
+
' '
+
sys
.
argv
[
1
]
+
' '
+
sys
.
argv
[
2
]
)
channel
=
init_chanel
(
sys
.
argv
)
channel
=
init_chanel
(
sys
.
argv
)
global
queue_name
global
queue_name
queue_name
=
sys
.
argv
[
2
]
queue_name
=
sys
.
argv
[
2
]
...
...
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