-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add zero downtime deployment #5338
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c7d04ed
Deploy controllers without downtime
style95 8310d54
Deploy invokers without downtime
style95 a49c0a3
Deploy schedulers without downtime
style95 edab778
Fix typo
style95 e76938b
Fix typo
style95 cfe96fa
Add a disable API to controllers
style95 ec626d8
Remove unnecessary steps
style95 a7c359a
Add more logs for container liveness
style95 6e6d07d
Change Set to thread-safe one
style95 9b0704f
Use the transaction ID of the activation
style95 393880a
Gracefully shutdown activation client proxy
style95 ea848fc
Update core/invoker/src/main/scala/org/apache/openwhisk/core/containe…
style95 d9bb23c
Update core/invoker/src/main/scala/org/apache/openwhisk/core/containe…
style95 0c90289
Update core/invoker/src/main/scala/org/apache/openwhisk/core/containe…
style95 baf0f54
Apply https://github.com/apache/openwhisk/pull/5334
style95 9540ad5
Remove akka-http dependency from the invoker reactive
style95 c182975
Exclude the prewarm containers count from the /pool/count route
style95 fd208a3
Add missing import
style95 c39dcd3
Make it compatible with scala-2.13
style95 bad5904
Fix test cases
style95 e7a100b
Add container id to the logs of ActivationClientProxy
style95 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ import org.apache.openwhisk.common.Https.HttpsConfig | |
import org.apache.openwhisk.common._ | ||
import org.apache.openwhisk.core.WhiskConfig._ | ||
import org.apache.openwhisk.core.connector.{MessageProducer, MessagingProvider} | ||
import org.apache.openwhisk.core.containerpool.v2.{NotSupportedPoolState, TotalContainerPoolState} | ||
import org.apache.openwhisk.core.containerpool.{Container, ContainerPoolConfig} | ||
import org.apache.openwhisk.core.entity._ | ||
import org.apache.openwhisk.core.entity.size._ | ||
|
@@ -250,7 +251,7 @@ trait InvokerCore { | |
def disable(): String | ||
def isEnabled(): String | ||
def backfillPrewarm(): Route | ||
def status(): Future[Map[String, List[String]]] | ||
def getPoolState(): Future[Either[NotSupportedPoolState, TotalContainerPoolState]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is one small change from the original codes. |
||
} | ||
|
||
/** | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the total containers in the container pool state object includes prewarm containers so not sure if you want that included in this route when determining if the invoker is cleared unless disabling immediately tears down prewarms than it's probably fine. If that isn't adequate, I think what you want for determining if the invoker is safe to shut down is summing the
totalContainers
values of thebusyPool
andwarmedPool