/ServiceControl.RemoveStaleEndpoints

Console app to delete stale endpoint

Primary LanguageC#MIT LicenseMIT

Note

Starting with ServicePulse 1.42.1 and ServiceControl 5.9.1, the remove stale endpoints functionality is now built into the Particular Service Platform. This command line tool is no longer maintained.

ServiceControl.RemoveStaleEndpoints

The servicecontrol-remove-stale-endpoints command line tool removes inactive endpoints from ServiceControl primary instances and endpoint instances from ServiceControl Monitoring instances.

Reporting

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

Purging

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

Installing

With .NET 8 installed

dotnet tool install -g ServiceControl.RemoveStaleEndpoints --add-source https://f.feedz.io/mauroservienti/pre-releases/nuget/index.json

Updating

dotnet tool update -g ServiceControl.RemoveStaleEndpoints --add-source https://f.feedz.io/mauroservienti/pre-releases/nuget/index.json