This repository was archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 513
adding health checks #432
Merged
Merged
adding health checks #432
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
7e6c2ef
each replica has its own cancellation token and records its own state
areller 8b3e89c
added state to v1replica
areller 57dc3f4
license and formatting
areller 616df58
add liveness and readiness to configuration and model
areller 3912db6
ReplicaMonitor
areller 24b0459
revamp test helpers
areller d4fbdeb
health check tests
areller e95a361
formatting
areller 56b9869
merge with master
areller 9dcc606
formatting
areller 3f48f54
don't run docker tests
areller 3b058b3
add more tests
areller 4659b51
fix header handling
areller ee9b374
start adding timeout to http probe
areller 8f396c7
add timeout, port, protocol, successThreshold, failureThreshold to pr…
areller 0276a09
success threshold must be 1 for liveness
areller 569df2a
proxy and ingress don't forward to non ready replicas
areller f22149c
warnings and formatting
areller f452feb
Merge remote-tracking branch 'dotnet/master' into health
areller aa52cd0
fix mistake done by merge
areller 22e506e
formatting
areller 7a72a3e
Merge branch 'master' into health
areller 440cf1b
Merge remote-tracking branch 'dotnet/master' into health
areller e86cda1
run proxy for single replica services if readiness is defined
areller b41ccff
license and formatting
areller 1d3d03e
should start at (false, false)
areller f89e630
clean csproj
areller 726e2a4
rename service names in health-checks folder
areller 7a29291
change name of service in tests
areller 65c7ae0
generate liveness and readiness in k8s manifest
areller ffef174
fix review comments
areller 6280485
using docker restart when docker replica is cancelled
areller a116b4b
formatting
areller eb13a21
Update src/Microsoft.Tye.Core/CoreStrings.resx
areller 602a2bc
Update src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs
areller 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| using System.Collections.Generic; | ||
| using System.ComponentModel.DataAnnotations; | ||
| using System.Net.Http.Headers; | ||
|
|
||
| namespace Microsoft.Tye.ConfigModel | ||
| { | ||
| public class ConfigHttpProber | ||
| { | ||
| [Required] public string Path { get; set; } = default!; | ||
| public int? Port { get; set; } | ||
| public string? Protocol { get; set; } | ||
| public List<KeyValuePair<string, object>> Headers { get; set; } = new List<KeyValuePair<string, object>>(); | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| namespace Microsoft.Tye.ConfigModel | ||
| { | ||
| public class ConfigProbe | ||
| { | ||
| public ConfigHttpProber? Http { get; set; } | ||
| public int InitialDelay { get; set; } = 0; | ||
| public int Period { get; set; } = 1; | ||
| public int Timeout { get; set; } = 1; | ||
| public int SuccessThreshold { get; set; } = 1; | ||
| public int FailureThreshold { get; set; } = 3; | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| using System.Collections.Generic; | ||
|
|
||
| namespace Microsoft.Tye | ||
| { | ||
| public class HttpProberBuilder | ||
| { | ||
| public string Path { get; set; } = default!; | ||
| public int? Port { get; set; } | ||
| public string? Protocol { get; set; } | ||
| public List<KeyValuePair<string, object>> Headers { get; set; } = new List<KeyValuePair<string, object>>(); | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| namespace Microsoft.Tye | ||
| { | ||
| public class ProbeBuilder | ||
| { | ||
| public HttpProberBuilder? Http { get; set; } | ||
| public int InitialDelay { get; set; } | ||
| public int Period { get; set; } | ||
| public int Timeout { get; set; } | ||
| public int SuccessThreshold { get; set; } | ||
| public int FailureThreshold { get; set; } | ||
| } | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.