Process search metrics synchronously
Process search metrics synchronously

Previously, every call to search.NewSearch (as performed by schedule.Init)
would spawn a new go routine. When that search was no longer used, as in
the case of a rule test which creates a new schedule, the go routine was
not stopped, thus leaking. The purpose of the go routine was to prevent
memory and go routine use when the lock was not being unlocked. Since the
lock bugs are now fixed, we no longer need to do that and can return to
realtime processing.

This does mean that, given a very large load, the search queue may not be
able to keep up. But I would guess at that point many other things (like
OpenTSDB) wouldn't be keeping up, too.

influxdata/bosun,youngl98/bosun,mhenderson-so/bosun,CheRuisiBesares/bosun,inkel/bosun,dimamedvedev/bosun,influxdata/bosun,mxk1235/bosun,CheRuisiBesares/bosun,vitorboschi/bosun,dieface/bosun,cyngn/bosun,alienth/bosun,noblehng/bosun,GROpenSourceDev/bosun,yyljlyy/bosun,mathpl/bosun,inkel/bosun,dimamedvedev/bosun,cazacugmihai/bosun,influxdb/bosun,vitorboschi/bosun,shanemadden/bosun,augporto/bosun,SlashmanX/bosun,dieface/bosun,yyljlyy/bosun,objStorage/bosun,augporto/bosun,dbirchak/bosun,madhukarreddy/bosun,mxk1235/bosun,bosun-monitor/bosun,mnikhil-git/bosun,inkel/bosun,simnv/bosun,snowsnail/bosun,CheRuisiBesares/bosun,seekingalpha/bosun,snowsnail/bosun,GROpenSourceDev/bosun,snowsnail/bosun,youngl98/bosun,bridgewell/bosun,eMerzh/bosun,azhurbilo/bosun,influxdb/bosun,simnv/bosun,influxdb/bosun,yyljlyy/bosun,bridgewell/bosun,shanemadden/bosun,trigrass2/bosun,shanemadden/bosun,noblehng/bosun,cyngn/bosun,fisdap/bosun,objStorage/bosun,mnikhil-git/bosun,gregdel/bosun,GROpenSourceDev/bosun,melifaro/bosun,dimamedvedev/bosun,gregdel/bosun,leapar/bosun,trigrass2/bosun,mathpl/bosun,youngl98/bosun,seekingalpha/bosun,dimamedvedev/bosun,mehulkar/bosun,mathpl/bosun,csmith-palantir/bosun,alienth/bosun,inkel/bosun,TrentScholl/bosun,simnv/bosun,objStorage/bosun,influxdb/bosun,vitorboschi/bosun,vimeo/bosun,treejames/bosun,fisdap/bosun,gregdel/bosun,GROpenSourceDev/bosun,treejames/bosun,CheRuisiBesares/bosun,eMerzh/bosun,csmith-palantir/bosun,trigrass2/bosun,SlashmanX/bosun,mnikhil-git/bosun,mathpl/bosun,shanemadden/bosun,Dieterbe/bosun,evgeny-potapov/bosun,vitorboschi/bosun,treejames/bosun,seekingalpha/bosun,noblehng/bosun,simnv/bosun,jareksm/bosun,jareksm/bosun,mxk1235/bosun,snowsnail/bosun,mxk1235/bosun,cazacugmihai/bosun,azhurbilo/bosun,azhurbilo/bosun,dimamedvedev/bosun,bridgewell/bosun,bosun-monitor/bosun,bosun-sharklasers/bosun,bosun-sharklasers/bosun,azhurbilo/bosun,vimeo/bosun,dieface/bosun,fisdap/bosun,shanemadden/bosun,Skyscanner/bosun,gregdel/bosun,yyljlyy/bosun,bookingcom/bosun,noblehng/bosun,bosun-monitor/bosun,evgeny-potapov/bosun,cazacugmihai/bosun,bosun-monitor/bosun,alienth/bosun,GROpenSourceDev/bosun,dbirchak/bosun,briantist/bosun,evgeny-potapov/bosun,vitorboschi/bosun,eMerzh/bosun,dieface/bosun,cyngn/bosun,augporto/bosun,influxdata/bosun,bosun-monitor/bosun,Skyscanner/bosun,trigrass2/bosun,dbirchak/bosun,influxdata/bosun,alienth/bosun,leapar/bosun,treejames/bosun,gregdel/bosun,alienth/bosun,evgeny-potapov/bosun,influxdb/bosun,bosun-monitor/bosun,TrentScholl/bosun,yyljlyy/bosun,couchand/bosun,youngl98/bosun,trigrass2/bosun,couchand/bosun,Skyscanner/bosun,eMerzh/bosun,briantist/bosun,treejames/bosun,evgeny-potapov/bosun,CheRuisiBesares/bosun,augporto/bosun,couchand/bosun,objStorage/bosun,noblehng/bosun,melifaro/bosun,vitorboschi/bosun,bosun-sharklasers/bosun,augporto/bosun,SlashmanX/bosun,fisdap/bosun,mxk1235/bosun,bookingcom/bosun,influxdata/bosun,bookingcom/bosun,objStorage/bosun,dieface/bosun,mnikhil-git/bosun,dimamedvedev/bosun,leapar/bosun,augporto/bosun,Skyscanner/bosun,dbirchak/bosun,mehulkar/bosun,mhenderson-so/bosun,trigrass2/bosun,mehulkar/bosun,yyljlyy/bosun,mathpl/bosun,mehulkar/bosun,madhukarreddy/bosun,bosun-sharklasers/bosun,youngl98/bosun,cyngn/bosun,azhurbilo/bosun,melifaro/bosun,madhukarreddy/bosun,melifaro/bosun,dbirchak/bosun,mxk1235/bosun,couchand/bosun,madhukarreddy/bosun,dbirchak/bosun,influxdb/bosun,GROpenSourceDev/bosun,cyngn/bosun,Dieterbe/bosun,couchand/bosun,eMerzh/bosun,treejames/bosun,influxdata/bosun,leapar/bosun,mhenderson-so/bosun,TrentScholl/bosun,cazacugmihai/bosun,mehulkar/bosun,cyngn/bosun,jareksm/bosun,youngl98/bosun,bookingcom/bosun,simnv/bosun,seekingalpha/bosun,mnikhil-git/bosun,jareksm/bosun,csmith-palantir/bosun,fisdap/bosun,mhenderson-so/bosun,TrentScholl/bosun,mathpl/bosun,inkel/bosun,jareksm/bosun,leapar/bosun,mehulkar/bosun,alienth/bosun,Skyscanner/bosun,madhukarreddy/bosun,mhenderson-so/bosun,dieface/bosun,shanemadden/bosun,briantist/bosun,noblehng/bosun,objStorage/bosun,Dieterbe/bosun,seekingalpha/bosun,madhukarreddy/bosun,cazacugmihai/bosun,mnikhil-git/bosun,SlashmanX/bosun,bosun-sharklasers/bosun,SlashmanX/bosun,mhenderson-so/bosun,csmith-palantir/bosun,gregdel/bosun,evgeny-potapov/bosun,CheRuisiBesares/bosun,bookingcom/bosun,snowsnail/bosun,briantist/bosun,Dieterbe/bosun,melifaro/bosun,fisdap/bosun,TrentScholl/bosun,couchand/bosun,csmith-palantir/bosun,seekingalpha/bosun,SlashmanX/bosun,bridgewell/bosun,briantist/bosun,jareksm/bosun,bookingcom/bosun,TrentScholl/bosun,snowsnail/bosun,inkel/bosun,vimeo/bosun,bridgewell/bosun,vimeo/bosun,azhurbilo/bosun,Skyscanner/bosun,leapar/bosun,eMerzh/bosun,briantist/bosun,bosun-sharklasers/bosun,csmith-palantir/bosun,melifaro/bosun,cazacugmihai/bosun,simnv/bosun,bridgewell/bosun