Results 1 to 3 of 3

Thread: [RESOLVED] 2 schedulers setup, load balancing issue

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    2

    [RESOLVED] 2 schedulers setup, load balancing issue

    Hello,

    I use for my company shinken since a couple of months and i love it (3k hosts, 50k services )
    Anyway, i have a problem and i was unable to figured it out to have both 2 schedulers taking egual part of the load.
    First i did try a setup with only scheduler-1 configured, it was working fine but scheduler process was always at 100%
    So, i did try to have a 2nd scheduler ( scheduler-2 ), i put it alive, but it take all the jobs and its working fine, but not as axpected
    I have read the doc : http://www.shinken-monitoring.org/wi...load_balancing
    In my setup, i have :
    - no service dependency
    - no host dependency
    - no parents relationship
    So, i dont see with the 3k packs created are not able to go on both scheduler configured.
    I use only one Realm 'All' for all the hosts.
    While moving from shinken 1.2.4 to 1.4 the problem did remain ...
    I did try also to play with the weight value in shinken specific, without success .
    Both scheduler are on separate hosts which are dedicated for there function.

    Some system info :
    debian : 7.1
    pyro : 4.20-1
    shinken : 1.4

    * scheduler-1 log start :
    http://pastebin.com/NVjmFA93
    * scheduler-2 log start :
    http://pastebin.com/1MPk3DD4
    * arbiter revelant log :
    2013-09-22 00:08:13,349 [1379808493] Info : Dispatching Realm All
    2013-09-22 00:08:13,350 [1379808493] Info : [All] Dispatching 2/2 configurations
    2013-09-22 00:08:13,350 [1379808493] Info : [All] Schedulers order: scheduler-1,scheduler-2
    2013-09-22 00:08:13,350 [1379808493] Info : [All] Dispatching configuration 0
    2013-09-22 00:08:13,351 [1379808493] Info : [All] Trying to send conf 0 to scheduler scheduler-2
    2013-09-22 00:08:19,527 [1379808499] Debug : Conf is sent in 6
    2013-09-22 00:08:19,528 [1379808499] Info : [All] Dispatch OK of conf in scheduler scheduler-2
    2013-09-22 00:08:19,528 [1379808499] Info : [All] Dispatching configuration 1
    2013-09-22 00:08:19,528 [1379808499] Info : [All] Trying to send conf 1 to scheduler scheduler-1
    2013-09-22 00:08:19,534 [1379808499] Debug : Conf is sent in 0
    2013-09-22 00:08:19,535 [1379808499] Info : [All] Dispatch OK of conf in scheduler scheduler-1
    2013-09-22 00:08:19,535 [1379808499] Info : OK, all schedulers configurations are dispatched

    shinken-specific.cfg :
    define scheduler {
    scheduler_name scheduler-1
    address 10.0.0.233
    port 7768
    spare 0
    weight 1
    timeout 3
    data_timeout 120
    max_check_attempts 3
    check_interval 60
    modules MemcacheRetention
    realm All
    }

    define scheduler {
    scheduler_name scheduler-2
    address 10.0.0.231
    port 7768
    spare 0
    weight 1
    timeout 3
    data_timeout 120
    max_check_attempts 3
    check_interval 60
    modules MemcacheRetention
    realm All
    }

    Thanks in advance for any help.

    Regards,

    Nicolas

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: 2 schedulers setup, load balancing issue

    Hi,


    it's due to the fact that you add a scheduler without removing the local pack_distribution.dat file on your arbiter server. This small file enable hosts to be put on the same schedulers between reboots (help retention and thing like this). But when you add scheduler for just load balancing (and not new hosts), it must be removed

    yes, the doc is not uptodate
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    2

    [resolved] Re: 2 schedulers setup, load balancing issue

    Hi Jean,

    Thanks for your reply, i remove the file mentionned and now the load balancing is working between our schedulers.

    Thanks again.

    Rgds,

    Nicolas

Posting Permissions

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