~charmers/charms/trusty/mongodb/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
perf:
  description: The standard mongoperf benchmark.
  params:
    runtime:
      description: The time, in seconds, to run mongoperf.
      type: integer
      default: 180
    nthreads:
      description: |
        Defines the number of threads mongoperf will use in the test. To saturate your system’s storage system you will need multiple threads. Consider setting nThreads to 16.
      type: integer
      default: 1
    fileSizeMB:
      description: Test file size, in megabytes.
      type: integer
      default: 1
    sleepMicros:
      description: |
        mongoperf will pause for the number of specified sleepMicros divided by the nThreads between each operation.
      type: integer
      default: 0
    mmf:
      description: |
        Set mmf to true to use memory mapped files for the tests.
      type: boolean
      default:  False
    r:
      description: |
        Set r to true to perform reads as part of the tests.
      type: boolean
      default: False
    w:
      description: |
        Set w to true to perform writes as part of the tests.
      type: boolean
      default: False
    recSizeKB:
      description: The size of each write operation, in kilobytes.
      type: integer
      default: 4
    syncDelay:
      description: |
        Seconds between disk flushes. mongoperf.syncDelay is similar to --syncdelay for mongod.

        The syncDelay controls how frequently mongoperf performs an asynchronous disk flush of the memory mapped file used for testing. By default, mongod performs this operation every 60 seconds. Use syncDelay to test basic system performance of this type of operation.

        Only use syncDelay in conjunction with mmf set to true.
      type: integer
      default: 0
dump:
  description: Runs the mongodump command
  params:
    args:
      description: The arguments to pass to the mongodump command
      type: string
      default: ""
    workingDir:
      description: The directory to run the mongodump command from.
      type: string
      default: "/tmp/mongodump"
restore:
  description: Runs the mongorestore command
  params:
    args:
      description: The arguments to pass to the mongorestore command
      type: string
      default: ""
    workingDir:
      description: The directory to run the mongorestore command from.
      type: string
      default: "/tmp/mongodump"