Azure / service-fabric-mesh-preview

Service Fabric Mesh is the Service Fabric's serverless offering to enable developers to deploy containerized applications without managing infrastructure. Service Fabric Mesh , aka project “SeaBreeze” is currently available in private preview. This repository will be used for tracking bugs/feature requests as GitHub issues and for maintaining the latest documentation.
MIT License
82 stars 12 forks source link

Unclear error message in Visual Studio when deployment fails due to insufficient resources #247

Open amolenk opened 6 years ago

amolenk commented 6 years ago

If there are insufficient resources when deploying an application to the local cluster, I get the following error in the output window:

Deploying the application to the Service Fabric local cluster failed.
See Service Fabric Explorer for additional details error.

The event log contains much more useful information, there are two warnings:

PLB:
Insufficient resources when adding service fabric:/MeshTest2/Web1 for metric servicefabric:/_CpuCores: Requested 5000000, Available 3000000, Reserved0 BufferPercentage 0, Capacity 3000000

CM:
[(00000000-0000-0000-0000-000000002000:131772556918723384)+ac2a4f91-d05c-45f5-b7f5-5025df0a75e6:0] single instance deployment create failed due to FABRIC_E_INSUFFICIENT_CLUSTER_CAPACITY 

It would be nice if this information can be surfaced better to the user in Visual Studio.

majastrz commented 10 months ago

In my case, this error meant that the placement constraints couldn't be satisfied by the cluster.