Statistics
| Branch: | Tag: | Revision:

root / doc / examples / gnt-debug / README @ 54f834df

History | View | Annotate | Download (895 Bytes)

1
In order to submit arbitrary jobs to ganeti one can call gnt-debug submit-job
2
passing a suitably formatted json file. A few examples of those files are
3
included here.
4

    
5
Using delay0.json and delay50.json in conjunction with submit-job for example
6
allows one to submit rapidly many short delay job (using --job-repeat),
7
repeating the sleep opcode any number of times (using --op-repeat), either all
8
at the same time or one at a time (with --each). This can be used to check the
9
performance of the job queue.
10

    
11
Examples:
12

    
13
# Run 40 jobs with 10 opcodes each:
14
gnt-debug submit-job --op-repeat 10 --job-repeat 40 --timing-stats delay0.json
15

    
16
# Run 40 jobs with 1 opcode each:
17
gnt-debug submit-job --op-repeat 1 --job-repeat 40 --timing-stats delay0.json
18

    
19
# Run 40 jobs with 10 opcodes each and submit one at a time:
20
gnt-debug submit-job --op-repeat 10 --job-repeat 40 --timing-stats --each delay0.json
21