{"action":"created","issue":{"url":"https://api.github.com/repos/wraithgar/hapi-rate-limit/issues/52","repository_url":"https://api.github.com/repos/wraithgar/hapi-rate-limit","labels_url":"https://api.github.com/repos/wraithgar/hapi-rate-limit/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/wraithgar/hapi-rate-limit/issues/52/comments","events_url":"https://api.github.com/repos/wraithgar/hapi-rate-limit/issues/52/events","html_url":"https://github.com/wraithgar/hapi-rate-limit/issues/52","id":353744214,"node_id":"MDU6SXNzdWUzNTM3NDQyMTQ=","number":52,"title":"hapi in cluster mode","user":{"login":"AntoineAA","id":5539332,"node_id":"MDQ6VXNlcjU1MzkzMzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5539332?v=4","gravatar_id":"","url":"https://api.github.com/users/AntoineAA","html_url":"https://github.com/AntoineAA","followers_url":"https://api.github.com/users/AntoineAA/followers","following_url":"https://api.github.com/users/AntoineAA/following{/other_user}","gists_url":"https://api.github.com/users/AntoineAA/gists{/gist_id}","starred_url":"https://api.github.com/users/AntoineAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntoineAA/subscriptions","organizations_url":"https://api.github.com/users/AntoineAA/orgs","repos_url":"https://api.github.com/users/AntoineAA/repos","events_url":"https://api.github.com/users/AntoineAA/events{/privacy}","received_events_url":"https://api.github.com/users/AntoineAA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-24T11:19:59Z","updated_at":"2018-08-24T18:49:06Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nThank you for this plugin, really useful!\r\n\r\nI'm using hapi in cluster mode with pm2.\r\nIn this mode, rate limits are applied to each instance and not for the whole server.\r\nIf I start only one instance, it works good.\r\n\r\nDo you have any tips for getting around the problem?\r\n\r\nBest,\r\nAntoine"},"comment":{"url":"https://api.github.com/repos/wraithgar/hapi-rate-limit/issues/comments/415849293","html_url":"https://github.com/wraithgar/hapi-rate-limit/issues/52#issuecomment-415849293","issue_url":"https://api.github.com/repos/wraithgar/hapi-rate-limit/issues/52","id":415849293,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTg0OTI5Mw==","user":{"login":"wraithgar","id":36607,"node_id":"MDQ6VXNlcjM2NjA3","avatar_url":"https://avatars2.githubusercontent.com/u/36607?v=4","gravatar_id":"","url":"https://api.github.com/users/wraithgar","html_url":"https://github.com/wraithgar","followers_url":"https://api.github.com/users/wraithgar/followers","following_url":"https://api.github.com/users/wraithgar/following{/other_user}","gists_url":"https://api.github.com/users/wraithgar/gists{/gist_id}","starred_url":"https://api.github.com/users/wraithgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wraithgar/subscriptions","organizations_url":"https://api.github.com/users/wraithgar/orgs","repos_url":"https://api.github.com/users/wraithgar/repos","events_url":"https://api.github.com/users/wraithgar/events{/privacy}","received_events_url":"https://api.github.com/users/wraithgar/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T18:49:06Z","updated_at":"2018-08-24T18:49:06Z","author_association":"OWNER","body":"Are you telling each hapi to use the same cache?\r\n\r\nThe line in the example from the readme is\r\n\r\n```js\r\nconst server = Hapi.server({\r\n    cache: { engine: require('catbox-memory'), name: 'memory' }\r\n});\r\n```\r\n\r\nBut you'd want to change that to catbox-redis and configure it to use the same redis instance.  Under the hood it calls the `cache` method on the server, so whatever the server has as its cache is used.\r\n\r\nMore info on setting that up can be found in the [hapi docs](https://hapijs.com/api#-serveroptionscache)"}}
{"actor":{"display_login":"wraithgar"}}