{"action":"created","issue":{"url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/60","labels_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/60/comments","events_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/60/events","html_url":"https://github.com/grobian/carbon-c-relay/issues/60","id":67501215,"number":60,"title":"Multi-thread support for aggregator","user":{"login":"Neway6655","id":1468302,"avatar_url":"https://avatars.githubusercontent.com/u/1468302?v=3","gravatar_id":"","url":"https://api.github.com/users/Neway6655","html_url":"https://github.com/Neway6655","followers_url":"https://api.github.com/users/Neway6655/followers","following_url":"https://api.github.com/users/Neway6655/following{/other_user}","gists_url":"https://api.github.com/users/Neway6655/gists{/gist_id}","starred_url":"https://api.github.com/users/Neway6655/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neway6655/subscriptions","organizations_url":"https://api.github.com/users/Neway6655/orgs","repos_url":"https://api.github.com/users/Neway6655/repos","events_url":"https://api.github.com/users/Neway6655/events{/privacy}","received_events_url":"https://api.github.com/users/Neway6655/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-04-10T03:35:15Z","updated_at":"2015-05-05T09:50:47Z","closed_at":null,"body":"Is it possible to support multi-thread for aggregator?\r\n\r\nI have a scenario which the performance is seems blocking at the aggregation, as I have millions of metrics received every min, and all those metrics are needed to be aggregated, the configuration file looks like this:\r\n```\r\ncluster local_carbon\r\n  forward\r\n    192.168.0.138:2013\r\n  ;\r\nmatch ^metrics.all.*\r\n  send to local_carbon\r\n  stop\r\n  ;\r\naggregate\r\n        metrics.*.api.ac\\.([^.]+)\\.([^.]+)\\.([^.]+)\\.([^.]+)\\.([^.]+)\\.count\r\n    every 10 seconds\r\n    expire after 50 seconds\r\n    compute sum write to\r\n        metrics.all.api.ac.\\1.\\2.\\3.\\4.\\5.count\r\n    compute sum write to\r\n        metrics.all.api.ac.\\1.\\2.all.\\4.\\5.count\r\n    compute sum write to\r\n        metrics.all.api.ac.\\1.\\2.\\3.all.\\5.count\r\n    compute sum write to\r\n        metrics.all.api.ac.\\1.\\2.all.all.\\5.count\r\n    ;\r\n```\r\nand I have glanced the code(aggregator.c) a little bit, maybe it can be changed to bind one thread for every aggregator, instead of all aggregators?"},"comment":{"url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/comments/99014535","html_url":"https://github.com/grobian/carbon-c-relay/issues/60#issuecomment-99014535","issue_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/60","id":99014535,"user":{"login":"Neway6655","id":1468302,"avatar_url":"https://avatars.githubusercontent.com/u/1468302?v=3","gravatar_id":"","url":"https://api.github.com/users/Neway6655","html_url":"https://github.com/Neway6655","followers_url":"https://api.github.com/users/Neway6655/followers","following_url":"https://api.github.com/users/Neway6655/following{/other_user}","gists_url":"https://api.github.com/users/Neway6655/gists{/gist_id}","starred_url":"https://api.github.com/users/Neway6655/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neway6655/subscriptions","organizations_url":"https://api.github.com/users/Neway6655/orgs","repos_url":"https://api.github.com/users/Neway6655/repos","events_url":"https://api.github.com/users/Neway6655/events{/privacy}","received_events_url":"https://api.github.com/users/Neway6655/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T09:50:47Z","updated_at":"2015-05-05T09:50:47Z","body":"Wow, It nicely fixed my issue here, I did a verification on my environment, and all went well. Thanks a lot! You must be the most diligent guy working on the Labor Day :)"}}