Skip to content

Commit

Permalink
refactor(slimdata): update dotnet cluster => Fixed graceful shutdown …
Browse files Browse the repository at this point in the history
…of Raft TCP listener
  • Loading branch information
guillaume-chervet committed Oct 15, 2024
1 parent 4e5e779 commit cdd18f6
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 26 deletions.
16 changes: 8 additions & 8 deletions demo/deployment-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ spec:
app: fibonacci1
annotations:
SlimFaas/Function: "true"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "10"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "5"
SlimFaas/NumberParallelRequest : "1"
spec:
serviceAccountName: default
automountServiceAccountToken: false
containers:
- name: fibonacci1
image: axaguildev/fibonacci:0.24.16
image: axaguildev/fibonacci:0.24.18
livenessProbe:
httpGet:
path: /health
Expand Down Expand Up @@ -58,14 +58,14 @@ spec:
app: fibonacci2
annotations:
SlimFaas/Function: "true"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "10"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "5"
SlimFaas/DependsOn: "fibonacci1,mysql"
spec:
serviceAccountName: default
automountServiceAccountToken: false
containers:
- name: fibonacci2
image: axaguildev/fibonacci:0.24.16
image: axaguildev/fibonacci:0.24.18
livenessProbe:
httpGet:
path: /health
Expand Down Expand Up @@ -102,14 +102,14 @@ spec:
app: fibonacci3
annotations:
SlimFaas/Function: "true"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "60"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "120"
SlimFaas/SubscribeEvents : "Public:fibo-public,Private:fibo-private"
spec:
serviceAccountName: default
automountServiceAccountToken: false
containers:
- name: fibonacci3
image: axaguildev/fibonacci:0.24.16
image: axaguildev/fibonacci:0.24.18
livenessProbe:
httpGet:
path: /health
Expand Down Expand Up @@ -150,15 +150,15 @@ spec:
SlimFaas/Function: "true"
SlimFaas/ReplicasMin: "0"
SlimFaas/ReplicasAtStart: "2"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "60"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "120"
SlimFaas/DefaultVisibility : "Private"
SlimFaas/SubscribeEvents : "Public:fibo-public,Private:fibo-private"
spec:
serviceAccountName: default
automountServiceAccountToken: false
containers:
- name: fibonacci4
image: axaguildev/fibonacci:0.24.16
image: axaguildev/fibonacci:0.24.18
livenessProbe:
httpGet:
path: /health
Expand Down
5 changes: 1 addition & 4 deletions demo/deployment-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ spec:
app: mysql
annotations:
SlimFaas/Function: "true"
SlimFaas/ReplicasMin: "0"
SlimFaas/ReplicasAtStart: "1"
#SlimFaas/ReplicasStartAsSoonAsOneFunctionRetrieveARequest: "true"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "10"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "5"
spec:
containers:
- image: mysql:5.6
Expand Down
2 changes: 1 addition & 1 deletion demo/deployment-slimfaas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
serviceAccountName: slimfaas
containers:
- name: slimfaas
image: axaguildev/slimfaas:0.24.16
image: axaguildev/slimfaas:0.24.18
livenessProbe:
httpGet:
path: /health
Expand Down
4 changes: 2 additions & 2 deletions src/SlimData/SlimData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNext.AspNetCore.Cluster" Version="5.13.0" />
<PackageReference Include="MemoryPack" Version="1.21.1" />
<PackageReference Include="DotNext.AspNetCore.Cluster" Version="5.14.0" />
<PackageReference Include="MemoryPack" Version="1.21.3" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions src/SlimFaas/SlimFaas.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@

<ItemGroup>
<PackageReference Include="KubernetesClient.Aot" Version="15.0.1" />
<PackageReference Include="MemoryPack" Version="1.21.1" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="8.0.8" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.8" />
<PackageReference Include="NodaTime" Version="3.1.12" />
<PackageReference Include="MemoryPack" Version="1.21.3" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.10" />
<PackageReference Include="NodaTime" Version="3.2.0" />
<PackageReference Include="prometheus-net" Version="8.2.1" />
<PackageReference Include="prometheus-net.AspNetCore" Version="8.2.1" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions tests/SlimData.Tests/SlimData.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.11.1" />
<FrameworkReference Include="Microsoft.AspNetCore.App" PrivateAssets="all"/>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="DotNext.AspNetCore.Cluster" Version="5.13.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
<PackageReference Include="DotNext.AspNetCore.Cluster" Version="5.14.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
8 changes: 4 additions & 4 deletions tests/SlimFaas.Tests/SlimFaas.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MemoryPack" Version="1.21.1" />
<PackageReference Include="MemoryPack" Version="1.21.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.11.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.10" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit cdd18f6

Please sign in to comment.