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
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
2879d06e
Commit
2879d06e
authored
Jul 14, 2011
by
Guillaume Bottex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo and cosmetics.
parent
b11197a1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
18 deletions
+20
-18
slapos/recipe/nosqltestbed/__init__.py
slapos/recipe/nosqltestbed/__init__.py
+10
-14
slapos/recipe/nosqltestbed/template/kumo_gateway_run.in
slapos/recipe/nosqltestbed/template/kumo_gateway_run.in
+2
-1
slapos/recipe/nosqltestbed/template/kumo_manager_run.in
slapos/recipe/nosqltestbed/template/kumo_manager_run.in
+2
-1
slapos/recipe/nosqltestbed/template/kumo_server_run.in
slapos/recipe/nosqltestbed/template/kumo_server_run.in
+3
-1
slapos/recipe/nosqltestbed/template/nosqltester_run.in
slapos/recipe/nosqltestbed/template/nosqltester_run.in
+3
-1
No files found.
slapos/recipe/nosqltestbed/__init__.py
View file @
2879d06e
...
@@ -45,7 +45,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -45,7 +45,7 @@ class NoSQLTestBed(BaseSlapRecipe):
raise
NotImplementedError
(
"Do not support %s"
%
software_type
)
raise
NotImplementedError
(
"Do not support %s"
%
software_type
)
def
run_kumo_cloud
(
self
):
def
run_kumo_cloud
(
self
):
""" Deploy kumofs syste
o
m on a cloud. """
""" Deploy kumofs system on a cloud. """
kumo_cloud_config
=
{}
kumo_cloud_config
=
{}
kumo_cloud_config
.
update
(
self
.
options
)
kumo_cloud_config
.
update
(
self
.
options
)
...
@@ -96,7 +96,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -96,7 +96,7 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
nosqltester_manager_runner_path
]
return
[
nosqltester_manager_runner_path
]
def
run_all
(
self
):
def
run_all
(
self
):
""" Run
s
all services on one machine. """
""" Run all services on one machine. """
all_config
=
{}
all_config
=
{}
all_config
.
update
(
self
.
options
)
all_config
.
update
(
self
.
options
)
...
@@ -132,16 +132,12 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -132,16 +132,12 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
manager_runner_path
,
server_runner_path
,
gateway_runner_path
]
return
[
manager_runner_path
,
server_runner_path
,
gateway_runner_path
]
def
run_kumo_manager
(
self
,
ipaddress
=
None
):
def
run_kumo_manager
(
self
):
""" Run
s
the kumofs manager. """
""" Run the kumofs manager. """
manager_config
=
{}
manager_config
=
{}
manager_config
.
update
(
self
.
options
)
manager_config
.
update
(
self
.
options
)
if
ipaddress
is
None
:
manager_config
[
'manager_address'
]
=
"[%s]"
%
self
.
getGlobalIPv6Address
()
manager_config
[
'manager_address'
]
=
"[%s]"
%
self
.
getGlobalIPv6Address
()
else
:
manager_config
[
'manager_address'
]
=
ipaddress
manager_config
[
'manager_port'
]
=
19700
manager_config
[
'manager_port'
]
=
19700
manager_config
[
'manager_log'
]
=
os
.
path
.
join
(
self
.
log_directory
,
"kumo-manager.log"
)
manager_config
[
'manager_log'
]
=
os
.
path
.
join
(
self
.
log_directory
,
"kumo-manager.log"
)
...
@@ -159,7 +155,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -159,7 +155,7 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
manager_runner_path
]
return
[
manager_runner_path
]
def
run_kumo_server
(
self
):
def
run_kumo_server
(
self
):
""" Run
s
the kumofs server. """
""" Run the kumofs server. """
server_config
=
{}
server_config
=
{}
server_config
.
update
(
self
.
options
)
server_config
.
update
(
self
.
options
)
server_config
.
update
(
self
.
parameter_dict
)
server_config
.
update
(
self
.
parameter_dict
)
...
@@ -183,7 +179,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -183,7 +179,7 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
server_runner_path
]
return
[
server_runner_path
]
def
run_kumo_gateway
(
self
):
def
run_kumo_gateway
(
self
):
""" Run
s
the kumofs gateway. """
""" Run the kumofs gateway. """
gateway_config
=
{}
gateway_config
=
{}
gateway_config
.
update
(
self
.
options
)
gateway_config
.
update
(
self
.
options
)
gateway_config
.
update
(
self
.
parameter_dict
)
gateway_config
.
update
(
self
.
parameter_dict
)
...
@@ -206,7 +202,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -206,7 +202,7 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
gateway_runner_path
]
return
[
gateway_runner_path
]
def
run_kumo_tester
(
self
):
def
run_kumo_tester
(
self
):
""" Run
s
the kumofs tester. """
""" Run the kumofs tester. """
tester_config
=
{}
tester_config
=
{}
tester_config
.
update
(
self
.
options
)
tester_config
.
update
(
self
.
options
)
tester_config
.
update
(
self
.
parameter_dict
)
tester_config
.
update
(
self
.
parameter_dict
)
...
@@ -236,7 +232,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -236,7 +232,7 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
tester_runner_path
]
return
[
tester_runner_path
]
def
run_kumo_tester_and_gateway
(
self
):
def
run_kumo_tester_and_gateway
(
self
):
""" Run
s
the kumofs tester and gateway on the same partition. """
""" Run the kumofs tester and gateway on the same partition. """
address
=
self
.
getGlobalIPv6Address
()
address
=
self
.
getGlobalIPv6Address
()
config_dict
=
{}
config_dict
=
{}
...
@@ -280,7 +276,7 @@ class NoSQLTestBed(BaseSlapRecipe):
...
@@ -280,7 +276,7 @@ class NoSQLTestBed(BaseSlapRecipe):
return
[
gateway_runner_path
,
tester_runner_path
]
return
[
gateway_runner_path
,
tester_runner_path
]
def
run_memstrike_set
(
self
):
def
run_memstrike_set
(
self
):
""" Run
s
memstrike in set mode. """
""" Run memstrike in set mode. """
memstrike_config
=
{}
memstrike_config
=
{}
memstrike_config
.
update
(
self
.
options
)
memstrike_config
.
update
(
self
.
options
)
memstrike_config
.
update
(
self
.
parameter_dict
)
memstrike_config
.
update
(
self
.
parameter_dict
)
...
...
slapos/recipe/nosqltestbed/template/kumo_gateway_run.in
View file @
2879d06e
#!/bin/sh
#!/bin/sh
# BEWARE: This file is operated by slapgrid
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# BEWARE: It will be overwritten automatically
exec
%
(
gateway_binary
)
s
-F
-E
-m
%
(
manager_address
)
s:%
(
manager_port
)
s
-t
%
(
gateway_address
)
s:%
(
gateway_port
)
s
--verbose
-o
%
(
gateway_log
)
s
exec
%
(
gateway_binary
)
s
-F
-E
-m
%
(
manager_address
)
s:%
(
manager_port
)
s
\
-t
%
(
gateway_address
)
s:%
(
gateway_port
)
s
--verbose
-o
%
(
gateway_log
)
s
slapos/recipe/nosqltestbed/template/kumo_manager_run.in
View file @
2879d06e
#!/bin/sh
#!/bin/sh
# BEWARE: This file is operated by slapgrid
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# BEWARE: It will be overwritten automatically
exec
%
(
manager_binary
)
s
-a
-l
%
(
manager_address
)
s:%
(
manager_port
)
s
--verbose
-o
%
(
manager_log
)
s
exec
%
(
manager_binary
)
s
-a
-l
%
(
manager_address
)
s:%
(
manager_port
)
s
\
--verbose
-o
%
(
manager_log
)
s
slapos/recipe/nosqltestbed/template/kumo_server_run.in
View file @
2879d06e
#!/bin/sh
#!/bin/sh
# BEWARE: This file is operated by slapgrid
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# BEWARE: It will be overwritten automatically
exec
%
(
server_binary
)
s
-l
%
(
server_address
)
s:%
(
server_port
)
s
-L
%
(
server_listen_port
)
s
-m
%
(
manager_address
)
s:%
(
manager_port
)
s
-s
%
(
server_storage
)
s
--verbose
-o
%
(
server_log
)
s
exec
%
(
server_binary
)
s
-l
%
(
server_address
)
s:%
(
server_port
)
s
\
-L
%
(
server_listen_port
)
s
-m
%
(
manager_address
)
s:%
(
manager_port
)
s
\
-s
%
(
server_storage
)
s
--verbose
-o
%
(
server_log
)
s
slapos/recipe/nosqltestbed/template/nosqltester_run.in
View file @
2879d06e
#!/bin/sh
#!/bin/sh
# BEWARE: This file is operated by slapgrid
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# BEWARE: It will be overwritten automatically
exec
%
(
nosqltester_binary
)
s
-m
%
(
host_address
)
s
-a
%
(
tester_address
)
s
-r
%
(
report_path
)
s
-b
"%(binary)s"
-l
%
(
log_directory
)
s
-c
"%(compress_method)s"
exec
%
(
nosqltester_binary
)
s
-m
%
(
host_address
)
s
-a
%
(
tester_address
)
s
\
-r
%
(
report_path
)
s
-b
"%(binary)s"
-l
%
(
log_directory
)
s
\
-c
"%(compress_method)s"
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