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
Roque
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
Show 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):
engine
=
self
.
options
.
get
(
'engine'
)
if
engine
:
# old versions of NEO don't support -e
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
class
Admin
(
NeoBaseRecipe
):
...
...
software/neoppod/buildout.hash.cfg
View file @
f7cb3edc
...
...
@@ -30,7 +30,7 @@ md5sum = 9f27195d770b2f57461c60a82c851ab9
[instance-neo]
filename = instance-neo.cfg.in
md5sum =
9bfb9e94363d63b801b29e559b7a0c8d
md5sum =
53b2c73a0c5c7cb5f6b841ba6892fa46
[template-neo-my-cnf]
filename = my.cnf.in
...
...
software/neoppod/instance-neo-input-schema.json
View file @
f7cb3edc
...
...
@@ -110,6 +110,11 @@
"default"
:
false
,
"type"
:
"boolean"
},
"disable-pack"
:
{
"description"
:
"Set the --disable-pack option for storage nodes."
,
"default"
:
false
,
"type"
:
"boolean"
},
"private-tmpfs"
:
{
"description"
:
"Size of private tmpfs mount to store the database. See filesystems/tmpfs.txt in Linux documentation. Use only for testing."
,
"type"
:
"string"
...
...
software/neoppod/instance-neo.cfg.in
View file @
f7cb3edc
...
...
@@ -151,8 +151,16 @@ engine = ${my-cnf-parameters:engine}
environment =
PATH={{sqlite3_location}}/bin
{%- endif %}
dedup = {{ dumps(bool(slapparameter_dict.get('data-deduplication'))) }}
disable-drop-partitions = {{ dumps(bool(slapparameter_dict.get('disable-drop-partitions'))) }}
extra-options =
{%- 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) -%}
{% 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