{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/dynomite/issues/309","repository_url":"https://api.github.com/repos/Netflix/dynomite","labels_url":"https://api.github.com/repos/Netflix/dynomite/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/dynomite/issues/309/comments","events_url":"https://api.github.com/repos/Netflix/dynomite/issues/309/events","html_url":"https://github.com/Netflix/dynomite/issues/309","id":168418893,"number":309,"title":"using dynomiteDB as PHP session handler","user":{"login":"dev-yohan","id":3068138,"avatar_url":"https://avatars.githubusercontent.com/u/3068138?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-yohan","html_url":"https://github.com/dev-yohan","followers_url":"https://api.github.com/users/dev-yohan/followers","following_url":"https://api.github.com/users/dev-yohan/following{/other_user}","gists_url":"https://api.github.com/users/dev-yohan/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-yohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-yohan/subscriptions","organizations_url":"https://api.github.com/users/dev-yohan/orgs","repos_url":"https://api.github.com/users/dev-yohan/repos","events_url":"https://api.github.com/users/dev-yohan/events{/privacy}","received_events_url":"https://api.github.com/users/dev-yohan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Netflix/dynomite/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-29T21:32:15Z","updated_at":"2016-08-01T16:19:58Z","closed_at":null,"body":"Hi, we are using dynomite to store php sessions in redis(with phpRedis extension) using two datacenters with 2 racks each one, actually we are using a load balancer as session host:\r\n\r\n```\r\nsession.save_handler = redis\r\nsession.save_path = \"tcp://load_balancer_host:6379?timeout=2.5\"\r\n```\r\nCurrently  we have issues when a rack node goes down because the load balancer seems to lost the connection to the healthy nodes, so I think that maybe is a better idea to remove the load balancer and set some of the nodes in the session.save_path, something like this:\r\n\r\n```\r\nsession.save_handler = redis\r\nsession.save_path = \"tcp://rack1_node1_host:6379?timeout=2.5,tcp://rack2_node1_host:6379?timeout=2.5.....\"\r\n```\r\n\r\nWhat do you think? maybe this is not a good practice in order to maintain the single points of failure at the minimun\r\n\r\nregards\r\n"},"comment":{"url":"https://api.github.com/repos/Netflix/dynomite/issues/comments/236630117","html_url":"https://github.com/Netflix/dynomite/issues/309#issuecomment-236630117","issue_url":"https://api.github.com/repos/Netflix/dynomite/issues/309","id":236630117,"user":{"login":"ipapapa","id":4562887,"avatar_url":"https://avatars.githubusercontent.com/u/4562887?v=3","gravatar_id":"","url":"https://api.github.com/users/ipapapa","html_url":"https://github.com/ipapapa","followers_url":"https://api.github.com/users/ipapapa/followers","following_url":"https://api.github.com/users/ipapapa/following{/other_user}","gists_url":"https://api.github.com/users/ipapapa/gists{/gist_id}","starred_url":"https://api.github.com/users/ipapapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipapapa/subscriptions","organizations_url":"https://api.github.com/users/ipapapa/orgs","repos_url":"https://api.github.com/users/ipapapa/repos","events_url":"https://api.github.com/users/ipapapa/events{/privacy}","received_events_url":"https://api.github.com/users/ipapapa/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T16:19:58Z","updated_at":"2016-08-01T16:19:58Z","body":"In our past performance tests, we found that a single Dynomite node could support 80-100K connections. In that case, we scaled horizontally in order for us to handle a higher number of connections. The load balancing was happening in the client side by [Dyno](https://github.com/Netflix/dyno).\r\n\r\nCurrently, you may be hitting a single node, which acts as the [coordinator node](https://github.com/Netflix/dynomite/wiki/Replication). Hence, if you want to scale to higher number of connections, you probably need some load balancer.\r\n"}}
{"actor":{"display_login":"ipapapa"}}