{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-server/issues/30","labels_url":"https://api.github.com/repos/chef/chef-server/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-server/issues/30/comments","events_url":"https://api.github.com/repos/chef/chef-server/issues/30/events","html_url":"https://github.com/chef/chef-server/issues/30","id":49437246,"number":30,"title":"opscode-expander-reindexer can likely be removed","user":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/chef/chef-server/milestones/2","html_url":"https://github.com/chef/chef-server/milestones/accepted-minor","labels_url":"https://api.github.com/repos/chef/chef-server/milestones/2/labels","id":1017015,"number":2,"title":"accepted-minor","description":"","creator":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":1,"state":"open","created_at":"2015-03-11T18:53:24Z","updated_at":"2015-05-13T18:31:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-11-19T18:50:30Z","updated_at":"2015-05-13T18:34:16Z","closed_at":null,"body":"`opscode-expander-reindexer`'s intended purpose was for reindexing the entire Chef Server.  In theory you would do this:\r\n\r\n1. Turn off opscode-expander\r\n2. Run a reindex tool which sends all updates to the /reindex rabbitmq vhost which is read by opscode-expander-reindexer.\r\n3. Once the reindex is complete, restart opscode-expander, processing writes that have come in since step (1).\r\n\r\nHowever, with the erchef rewrite, we no longer have a tool that does (2).  Further, it is likely that if we were to write a installation-wide reindex tool, it would be the moral equivalent of:\r\n\r\n```\r\nSAFTEY_TIMER=30\r\nfor org in $(chef-server-ctl org-list); do\r\n   redis-cli HSET dl_org_$org 503_mode true\r\n   sleep $SAFTEY_TIMER\r\n   /opt/opscode/embedded/service/opscode-erchef/bin/reindex-opc-organization complete $org\r\n   redis-cli HDEL dl_org_$org 503_mode\r\ndone\r\n```\r\n\r\nWe might consider removing this component from the chef-server as there is *nothing* that currently uses it."},"comment":{"url":"https://api.github.com/repos/chef/chef-server/issues/comments/101770432","html_url":"https://github.com/chef/chef-server/issues/30#issuecomment-101770432","issue_url":"https://api.github.com/repos/chef/chef-server/issues/30","id":101770432,"user":{"login":"sdelano","id":76847,"avatar_url":"https://avatars.githubusercontent.com/u/76847?v=3","gravatar_id":"","url":"https://api.github.com/users/sdelano","html_url":"https://github.com/sdelano","followers_url":"https://api.github.com/users/sdelano/followers","following_url":"https://api.github.com/users/sdelano/following{/other_user}","gists_url":"https://api.github.com/users/sdelano/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelano/subscriptions","organizations_url":"https://api.github.com/users/sdelano/orgs","repos_url":"https://api.github.com/users/sdelano/repos","events_url":"https://api.github.com/users/sdelano/events{/privacy}","received_events_url":"https://api.github.com/users/sdelano/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T18:34:16Z","updated_at":"2015-05-13T18:34:16Z","body":"+1. In addition, with the migration to Solr 4+, we no longer even **need** the async RabbitMQ -> Expander bits of the infrastructure.\r\n\r\nThese were in place primarily because Solr 1.3 blocked when issuing a commit to disk, and Solr 4 no longer behaves this way. The async posts to Solr allowed requests to proceed without waiting on Solr, but also resulted in a ~1 minute \"save until searchable\" behavior where your saves weren't searchable for up to a minute (or longer depending on load)."}}