Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
f7cb3edc
Commit
f7cb3edc
authored
May 17, 2024
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NEO: add support for the --disable-pack option
parent
02e8af97
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
slapos/recipe/neoppod.py
slapos/recipe/neoppod.py
+0
-4
software/neoppod/buildout.hash.cfg
software/neoppod/buildout.hash.cfg
+1
-1
software/neoppod/instance-neo-input-schema.json
software/neoppod/instance-neo-input-schema.json
+5
-0
software/neoppod/instance-neo.cfg.in
software/neoppod/instance-neo.cfg.in
+10
-2
No files found.
slapos/recipe/neoppod.py
View file @
f7cb3edc
...
@@ -128,10 +128,6 @@ class Storage(NeoBaseRecipe):
...
@@ -128,10 +128,6 @@ class Storage(NeoBaseRecipe):
engine
=
self
.
options
.
get
(
'engine'
)
engine
=
self
.
options
.
get
(
'engine'
)
if
engine
:
# old versions of NEO don't support -e
if
engine
:
# old versions of NEO don't support -e
r
+=
'-e'
,
engine
r
+=
'-e'
,
engine
if
self
.
options
.
get
(
'dedup'
):
r
.
append
(
'--dedup'
)
if
self
.
options
.
get
(
'disable-drop-partitions'
):
r
.
append
(
'--disable-drop-partitions'
)
return
r
return
r
class
Admin
(
NeoBaseRecipe
):
class
Admin
(
NeoBaseRecipe
):
...
...
software/neoppod/buildout.hash.cfg
View file @
f7cb3edc
...
@@ -30,7 +30,7 @@ md5sum = 9f27195d770b2f57461c60a82c851ab9
...
@@ -30,7 +30,7 @@ md5sum = 9f27195d770b2f57461c60a82c851ab9
[instance-neo]
[instance-neo]
filename = instance-neo.cfg.in
filename = instance-neo.cfg.in
md5sum =
9bfb9e94363d63b801b29e559b7a0c8d
md5sum =
53b2c73a0c5c7cb5f6b841ba6892fa46
[template-neo-my-cnf]
[template-neo-my-cnf]
filename = my.cnf.in
filename = my.cnf.in
...
...
software/neoppod/instance-neo-input-schema.json
View file @
f7cb3edc
...
@@ -110,6 +110,11 @@
...
@@ -110,6 +110,11 @@
"default"
:
false
,
"default"
:
false
,
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"disable-pack"
:
{
"description"
:
"Set the --disable-pack option for storage nodes."
,
"default"
:
false
,
"type"
:
"boolean"
},
"private-tmpfs"
:
{
"private-tmpfs"
:
{
"description"
:
"Size of private tmpfs mount to store the database. See filesystems/tmpfs.txt in Linux documentation. Use only for testing."
,
"description"
:
"Size of private tmpfs mount to store the database. See filesystems/tmpfs.txt in Linux documentation. Use only for testing."
,
"type"
:
"string"
"type"
:
"string"
...
...
software/neoppod/instance-neo.cfg.in
View file @
f7cb3edc
...
@@ -151,8 +151,16 @@ engine = ${my-cnf-parameters:engine}
...
@@ -151,8 +151,16 @@ engine = ${my-cnf-parameters:engine}
environment =
environment =
PATH={{sqlite3_location}}/bin
PATH={{sqlite3_location}}/bin
{%- endif %}
{%- endif %}
dedup = {{ dumps(bool(slapparameter_dict.get('data-deduplication'))) }}
extra-options =
disable-drop-partitions = {{ dumps(bool(slapparameter_dict.get('disable-drop-partitions'))) }}
{%- if slapparameter_dict.get('data-deduplication') %}
--dedup
{%- endif %}
{%- if slapparameter_dict.get('disable-drop-partitions') %}
--disable-drop-partitions
{%- endif %}
{%- if slapparameter_dict.get('disable-pack') %}
--disable-pack
{%- endif %}
{% for i in range(storage_count) -%}
{% for i in range(storage_count) -%}
{% set storage_id = 'neo-storage-' ~ i -%}
{% set storage_id = 'neo-storage-' ~ i -%}
...
...
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