You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is to be able to generate a dottrace result during the build
so if you improve some part of code you can check in the dottrace result before and after to check if you suceed
ex : before / after result
how to :
in 2 words :
deploy new docker images with dottrace
update infra to allow disk share + use of new images
Idea :
is to be able to generate a dottrace result during the build
![image](https://user-images.githubusercontent.com/113617172/236421928-f8c77938-df57-4d17-90b6-7b1ceb94f65c.png)
so if you improve some part of code you can check in the dottrace result before and after to check if you suceed
ex : before / after result
how to :
in 2 words :
deploy new docker images with dottrace
update infra to allow disk share + use of new images
Docker :
RUN dotnet tool install --version 2023.1.0-eap10 --global JetBrains.dotTrace.GlobalTools
ENTRYPOINT ["/bin/sh", "-c"]
#CMD ["
/.dotnet/tools/dottrace start --framework=NetCore --profiling-type=Sampling --service-input=/data/file.txt --save-to=/data/polling_snapshot.dtp /usr/bin/dotnet ./ArmoniK.Core.Compute.PollingAgent.dll"]/.dotnet/tools/dottrace start --framework=NetCore --profiling-type=Tracing --service-input=/data/polling_input.txt --save-to=/data/polling_snapshot.dtp /usr/bin/dotnet ./ArmoniK.Core.Compute.PollingAgent.dll"]CMD ["
infra :
in module armonik computeplane.tf : data drive read_only = true => false
fix pod to 1 (min&max)
scripts :
scripts to build launch etc :
onglets dottrace
#Build Worker
export armonikenv="v2.12"
cd /mnt/c/sources/armonik/$armonikenv/ArmoniK.Extensions.Csharp
docker build -t armonik_worker_dll:dottrace --network host --no-cache -f ./Worker/src/DLLWorker/Dockerfile .
#Build polling dottrace
export armonikenv="v2.12"
cd /mnt/c/sources/armonik/$armonikenv/ArmoniK.Core
docker build -t armonik_pollingagent:dottrace --network host -f Compute/PollingAgent/src/DockerfileDotTrace .
docker build -t armonik_pollingagent:perf --network host -f Compute/PollingAgent/src/Dockerfile .
#Build polling dottrace orig
export armonikenv="v2.12_orig"
cd /mnt/c/sources/armonik/$armonikenv/ArmoniK.Core
docker build -t armonik_pollingagent:dottrace_orig --network host -f Compute/PollingAgent/src/DockerfileDotTrace .
#Dottrace polling
dottrace help service-messages
export armonikenv="v2.12"
cd /mnt/c/sources/armonik/$armonikenv/ArmoniK/infrastructure/quick-deploy/localhost/all/data
echo "##dotTrace["get-snapshot"]" >> polling_input.txt
#Dottrace worker
dottrace help service-messages
cd /mnt/c/sources/armonik/$armonikenv/ArmoniK/infrastructure/quick-deploy/localhost/all/data
echo "##dotTrace["get-snapshot"]" >> worker_input.txt
#Zip build
export armonikenv="v2.12"
cd /mnt/c/sources/armonik/$armonikenv/ArmoniK.Extensions.Csharp/Tests
./endToEndTests.sh
cp /mnt/c/sources/armonik/$armonikenv/ArmoniK.Extensions.Csharp/Tests/ArmoniK.EndToEndTests/packages/ArmoniK.EndToEndTests.Worker-v1.0.0-700.zip /mnt/c/sources/armonik/$armonikenv/ArmoniK/infrastructure/quick-deploy/localhost/all/data/
kubectl delete pods -n armonik -l=service=compute-plane
launch perf run :
CPIP=$(kubectl get svc ingress -n armonik -o jsonpath="{.status.loadBalancer.ingress[0]."ip"}")
CPHOST=$(kubectl get svc ingress -n armonik -o jsonpath="{.status.loadBalancer.ingress[0]."hostname"}")
export CPIP=${CPHOST:-$CPIP}
export CPPort=$(kubectl get svc ingress -n armonik -o custom-columns="PORT:.spec.ports[1].port" --no-headers=true || echo "failure")
export Grpc__Endpoint=http://$CPIP:$CPPort
docker run --rm -e GrpcClient__Endpoint=$Grpc__Endpoint -e HtcMock__NTasks=100 -e HtcMock__TotalCalculationTime=00:00:00.001 -e HtcMock__DataSize=1 -e HtcMock__MemorySize=1 -e HtcMock__SubTasksLevels=5 -e HtcMock__EnableUseLowMem=true -e HtcMock__EnableSmallOutput=true -e HtcMock__EnableFastCompute=true -e HtcMock__Partition=htcmock dockerhubaneo/armonik_core_htcmock_test_client:latest
#force set polling agent image :
export imagename=dockerhubaneo/armonik_pollingagent:0.12.2
export imagename=armonik_pollingagent:dottrace
export imagename=armonik_pollingagent:dottrace_orig
export imagename=armonik_pollingagent:perf
kubectl set image -n armonik deployment compute-plane-default polling-agent=$imagename
kubectl delete pods -n armonik -l=service=compute-plane
The text was updated successfully, but these errors were encountered: