Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it easy to bring up another instance for verifying that a new index is served correctly #5

Closed
stapelberg opened this issue May 27, 2013 · 3 comments

Comments

@stapelberg
Copy link
Contributor

This includes:

  • adding a -listen_host option to source-backend
  • possibly unifying index-backend’s -listen to -listen_host
  • creating a little script which generates a new canary config by replacing the port numbers from the live config so that any changes are always taken over without having to care
  • check from the script whether the new site serves (also check before that it doesn’t serve)
  • check the index size and see if it differst more than x%
  • if everything is okay, swap the indexes
  • in dcsindex and dcsunpack, switch from log to printf to get the output on stdout instead of stderr

This enables automatic updates from crontab :).

@stapelberg
Copy link
Contributor Author

See also comment number 3 in #1, which would solve this issue trivially. One would just need to bring up a batch stack.

@stapelberg
Copy link
Contributor Author

commit dd72846 solves most of the issues here.

What’s still missing is update.sh itself, plus the check for the index size difference.

@stapelberg
Copy link
Contributor Author

I skipped the index size difference check for now, but the rest is implemented. Let’s see how well it does in practice next friday :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant