Azure Service Fabric: Unprovision application version

。_饼干妹妹 提交于 2019-12-25 16:39:27

问题


I'm looking for a way of cleaning old application versions in Service Fabric via the SDK. It seems there is no way to unprovision a version by using FabricClient's ApplicationManager (similar to the action available in the Service Fabric Explorer, Application Type view) ?

I can get a list of all the versions for an application type by using: fabricClient.QueryManager.GetApplicationTypeListAsync()


回答1:


How about this:

public System.Threading.Tasks.Task UnprovisionApplicationAsync (string applicationTypeName, string applicationTypeVersion);

Unregisters and removes a Service Fabric application type from the cluster.




回答2:


SF performes a regular sync on the nodes, so after a while the folders on the disk for the unprovisioned versions will be cleaned.



来源:https://stackoverflow.com/questions/44114543/azure-service-fabric-unprovision-application-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!