Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fd69bf89
authored
Nov 22, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: add field to node for memory overcommit ratio
parent
aef3fa0a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
circle/vm/migrations/0012_auto__add_field_node_overcommit.py
+0
-0
circle/vm/models.py
+6
-3
No files found.
circle/vm/migrations/0012_auto__add_field_node_overcommit.py
0 → 100644
View file @
fd69bf89
This diff is collapsed.
Click to expand it.
circle/vm/models.py
View file @
fd69bf89
...
...
@@ -7,9 +7,9 @@ from netaddr import EUI, mac_unix
import
django.conf
from
django.contrib.auth.models
import
User
from
django.core
import
signing
from
django.db.models
import
(
Model
,
F
oreignKey
,
ManyToManyField
,
Integer
Field
,
DateTimeField
,
BooleanField
,
Text
Field
,
CharField
,
permalink
,
Manager
)
from
django.db.models
import
(
Model
,
F
loatField
,
ForeignKey
,
ManyToMany
Field
,
IntegerField
,
DateTimeField
,
Boolean
Field
,
TextField
,
CharField
,
permalink
,
Manager
)
from
django.dispatch
import
Signal
from
django.utils
import
timezone
from
django.utils.translation
import
ugettext_lazy
as
_
...
...
@@ -125,6 +125,9 @@ class Node(TimeStampedModel):
help_text
=
_
(
"Declared traits."
),
verbose_name
=
_
(
'traits'
))
tags
=
TaggableManager
(
blank
=
True
,
verbose_name
=
_
(
"tags"
))
overcommit
=
FloatField
(
default
=
1.0
,
verbose_name
=
_
(
"overcommit ratio"
),
help_text
=
_
(
"The ratio of total memory with "
"to without overcommit."
))
class
Meta
:
permissions
=
()
...
...
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