Skip to content

Commit

Permalink
Updated PR and changed Statistics to ExecutionData
Browse files Browse the repository at this point in the history
  • Loading branch information
mudiagaobrikisil committed Nov 28, 2024
2 parents 0812665 + 2b91842 commit 3cb8e1f
Show file tree
Hide file tree
Showing 77 changed files with 2,452 additions and 550 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"ptcc",
"Rebinder",
"stylesheet",
"timespan",
"upserted",
"USFM"
],
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,13 @@ There are 3 different environments that Serval is deployed to:
- Run `kubectl config use-context dallas-rke`
- First, startup the storage (using internal qa for example)
- `helm install serval-pvc deploy/serval-pvc -n nlp -f deploy/qa-int-values.yaml`
- Then, startup the database (give it 60 seconds)
- `helm install mongo deploy/mongo -n nlp -f deploy/qa-int-values.yaml`
- Now you can turn on Serval
- `helm install serval deploy/serval -n nlp -f deploy/qa-int-values.yaml`

### To update the cluster
- To upgrade Serval:
- For QA internal Run:
- `kubectl config use-context dallas-rke`
- `kubectl config use-context dallas-stage`
- `helm upgrade serval deploy/serval -n nlp -f deploy/qa-int-values.yaml`
- For QA external Run:
- `kubectl config use-context dallas-rke`
Expand Down
8 changes: 0 additions & 8 deletions deploy/mongo/Chart.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions deploy/mongo/templates/mongo-deployment.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions deploy/mongo/templates/mongo-service.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions deploy/qa-ext-values.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
externalHost: qa.serval-api.org
environment: Production
deploymentVersion: '1.7.QA0'
deploymentVersion: '1.7.QA7'
alertEmail: ext-qa-serval-alerts@languagetechnology.org
emailsToAlert: john_lambert@sil.org
enableTls: true
namespace: serval
auth0Domain: dev-sillsdev.auth0.com
lokiTenent: serval-tenant
lokiUrl: http://loki-distributed-gateway.loki.svc.cluster.local
servalImage: ghcr.io/sillsdev/serval:1.7.0
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:1.6.3
servalImage: ghcr.io/sillsdev/serval:1.7.7
ClearMLDockerImage: ghcr.io/sillsdev/machine.py:1.7.2
ClearMLQueue: production
MongoConnectionPrefix: qa_
SharedFileLocation: s3://silnlp/ext-qa/
Expand Down
4 changes: 2 additions & 2 deletions deploy/qa-int-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ ClearMLDockerImage: ghcr.io/sillsdev/machine.py:1.6.3
ClearMLQueue: lambert_24gb
MongoConnectionPrefix: qa_int_
SharedFileLocation: s3://silnlp/int-qa/
servalClaimSize: 1Gi
machineClaimSize: 2Gi
servalClaimSize: 5Gi
machineClaimSize: 20Gi
enableEcho: true
15 changes: 1 addition & 14 deletions deploy/serval-pvc/templates/persistent-volume-claims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,4 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 50M
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: serval-mongo-claim
namespace: {{ .Values.namespace}}
spec:
storageClassName: "longhorn"
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storage: 55M
18 changes: 0 additions & 18 deletions deploy/serval/templates/fluentd-flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,3 @@ spec:
- echo
hosts: []
labels: {}
---
apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
name: mongo-flow
namespace: {{ .Values.namespace }}
spec:
globalOutputRefs: []
localOutputRefs:
- {{ .Values.namespace }}-loki-output
match:
- select:
container_names:
- mongo
hosts: []
labels: {}
status:
active: true
28 changes: 28 additions & 0 deletions samples/ApiExample/ApiExample.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UserSecretsId>4d0606c3-0fc7-4d76-b43b-236485004e81</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="data\**\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Duende.AccessTokenManagement" Version="3.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Serval.Client" Version="1.7.3" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions samples/ApiExample/ApiExample.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35327.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiExample", "ApiExample.csproj", "{F80F8853-776B-4C3A-B789-B8FD5820150A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F80F8853-776B-4C3A-B789-B8FD5820150A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F80F8853-776B-4C3A-B789-B8FD5820150A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F80F8853-776B-4C3A-B789-B8FD5820150A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F80F8853-776B-4C3A-B789-B8FD5820150A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {72D18D80-E951-41EE-8A1F-97B2B72615AD}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 3cb8e1f

Please sign in to comment.