Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
66ea8434
Commit
66ea8434
authored
15 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Update hscan to generate new-format text files
This also updates its manpage, some information were really old.
parent
16c2369c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hscan.1
+7
-12
7 additions, 12 deletions
hscan.1
hscan.hs
+3
-3
3 additions, 3 deletions
hscan.hs
with
10 additions
and
15 deletions
hscan.1
+
7
−
12
View file @
66ea8434
...
...
@@ -20,11 +20,10 @@ It will also show a one\(hyline score for each cluster scanned or, if
desired, the cluster state as show by the \fB-p\fR option to the other
tools.
For each cluster, two files named \fIcluster\fB.instances\fR and
\fIcluster\fB.nodes\fR will be generated holding the instance and node
data. These files can then be used in \fBhbal\fR(1) or \fBhspace\fR(1)
via the \fB-i\fR and \fB-n\fR options. In case the cluster name
contains slashes (as it can happen when the cluster is a
For each cluster, one file named \fIcluster\fB.data\ will be generated
holding the node and instance data. This file can then be used in
\fBhbal\fR(1) or \fBhspace\fR(1) via the \fB-t\fR option. In case the
cluster name contains slashes (as it can happen when the cluster is a
fully-specified URL), these will be replaced with underscores.
The one\(hyline output for each cluster will show the following:
...
...
@@ -58,7 +57,7 @@ Total disk in the cluster
Free disk space in the cluster
.TP
.B Score
The score of the cluster, as would be reported by \fBh
scan
\fR(1) if
The score of the cluster, as would be reported by \fBh
bal
\fR(1) if
run on the generated data files.
.RE
...
...
@@ -100,9 +99,6 @@ data).
The program does not check its input data for consistency, and aborts
with cryptic errors messages in this case.
The RAPI collection doesn't deal with non\(hy\fBdrbd\fR instances, and
chokes on input data which has such instances.
.SH EXAMPLE
.in +4n
...
...
@@ -110,9 +106,8 @@ chokes on input data which has such instances.
.RB "$ " "hscan cluster1"
Name Nodes Inst BNode BInst t_mem f_mem t_disk f_disk Score
cluster1 2 2 0 0 1008 652 255 253 0.24404762
.RB "$ " "ls -l cluster1.*"
\-rw\-r\-\-r\-\- 1 root root 163 2009\-03\-23 07:26 cluster1.instances
\-rw\-r\-\-r\-\- 1 root root 90 2009\-03\-23 07:26 cluster1.nodes
.RB "$ " "ls -l cluster1.data"
\-rw\-r\-\-r\-\- 1 root root 364 2009\-03\-23 07:26 cluster1.data
.fi
.in
...
...
This diff is collapsed.
Click to expand it.
hscan.hs
+
3
−
3
View file @
66ea8434
...
...
@@ -150,6 +150,6 @@ main = do
let
ndata
=
serializeNodes
csf
nl
idata
=
serializeInstances
csf
nl
il
oname
=
odir
</>
fixSlash
name
writeFile
(
oname
<.>
"nodes"
)
n
data
writeFile
(
oname
<.>
"
instances
"
)
i
data
)
)
clusters
adata
=
ndata
++
[
'
\n
'
]
++
i
data
writeFile
(
oname
<.>
"
data
"
)
a
data
)
)
clusters
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment