Created
May 2, 2016 20:15
-
-
Save leogrim/2ed024be3dda0b1bdf08f9c2fcc22618 to your computer and use it in GitHub Desktop.
ELB Autoregistration by Martin Raison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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