Skip to content

Instantly share code, notes, and snippets.

@leogrim
Created May 2, 2016 20:15
Show Gist options
  • Save leogrim/2ed024be3dda0b1bdf08f9c2fcc22618 to your computer and use it in GitHub Desktop.
Save leogrim/2ed024be3dda0b1bdf08f9c2fcc22618 to your computer and use it in GitHub Desktop.
ELB Autoregistration by Martin Raison
object Global extends GlobalSettings {
override def onStart(app: Application) {
// ...
registerToLoadBalancer() // ready to receive external traffic
// ...
}
override def onStop(app: Application) {
// ...
deregisterFromLoadBalancer() // stop receiving external traffic
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment