Results 1 to 3 of 3

Thread: [RESOLVED]Size problem with MongoDB retention base

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    [RESOLVED]Size problem with MongoDB retention base

    Hi,
    I have a distributed installation with 2 shinken schedulers, one active and one spare. If the primary scheduler fail, I want the second take the job without loosing all retention datas, so I have configured a mongodb retention database.
    My problem is that the size of this rentention base is growing day after day and is now very huge, more than 9 GB :'(

    Is there a solution to delete old rentention datas and shrink the base ?

    My retention base config:
    Code:
    ## Module:   Mongodb
    ## Loaded by:  Arbiter, WebUI
    # In Arbiter: Read objects in a mongodb database (like hosts or services).
    # In WebUI: Save/read user preferences.
    define module {
      module_name   retention-mongodb
      module_type   mongodb_retention
      #uri       mongodb://localhost/?safe=false
      uri		  mongodb://xxxxxxxxx:27017,yyyyyyy:27017
      database    retention
      replica_set	  monitor
      #username    username   ;optional
      #password    password   ;optional
    }

  2. #2
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Size problem with MongoDB retention base

    I answer to myself: repairing the databases has divide my MongoDB directory by 3 ... but I must do it on each MongoDB server

    Howto:
    http://www.bonusbits.com/main/HowTo:...aim_Disk_Space

  3. #3
    Junior Member
    Join Date
    Sep 2015
    Location
    Paris
    Posts
    5
    Dunno about MongoDB 2.4, but with MongoDB you can set specific options in the MongoDB configuration file to use "small" files :

    http://docs.mongodb.org/manual/refer...ation-options/
    http://docs.mongodb.org/v2.4/referen...ation-options/

    Look for "smallfiles" ... and also "prealloc"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •