The servicecontrol-remove-stale-endpoints
command line tool removes inactive endpoints from ServiceControl primary instances and endpoint instances from ServiceControl Monitoring instances.
The report-service-control-stale-endpoints
and report-service-control-monitoring-stale-instances
commands allow listing inactive endpoints and endpoint instances.
The complete command syntax for reporting inactive ServiceControl endpoints is:
servicecontrol-remove-stale-endpoints report-service-control-stale-endpoints --url http://localhost:33333/
To report inactive ServiceControl Monitoring endpoint instances, use:
servicecontrol-remove-stale-endpoints report-service-control-monitoring-stale-instances --url http://localhost:33633
The purge-service-control-stale-endpoints
and purge-service-control-monitoring-stale-instances
commands allow the purging of inactive endpoints and endpoint instances.
To purge ServiceControl inactive endpoints:
servicecontrol-remove-stale-endpoints purge-service-control-stale-endpoints --url http://localhost:33333/ --cutoff 00:00:10
The cutoff
argument (Optional. It defaults to 15 minutes) determines how long endpoints should have been stale before being removed.
To purge ServiceControl Monitoring inactive endpoint instances:
servicecontrol-remove-stale-endpoints purge-service-control-monitoring-stale-instances --url http://localhost:33633
With .NET 8 installed
dotnet tool install -g ServiceControl.RemoveStaleEndpoints --add-source https://f.feedz.io/mauroservienti/pre-releases/nuget/index.json
dotnet tool update -g ServiceControl.RemoveStaleEndpoints --add-source https://f.feedz.io/mauroservienti/pre-releases/nuget/index.json