The ResourceGovernancePolicy element is used to restrict the resources consumed by a container on a host. The limits can be set for Memory, MemorySwap, CPUShares, MemoryReservationInMB, or BlkioWeight (bulk I/O weight). The following sample shows the use of ResourceGovernancePolicy element:
<ServiceManifestImport>
<ServiceManifestRef ServiceManifestName="FrontendServicePackage" ServiceManifestVersion="1.0"/>
<Policies>
<ContainerHostPolicies CodePackageRef="FrontendService.Code">
<RepositoryCredentials AccountName="TestUser" Password="12345" PasswordEncrypted="false"/>
</ContainerHostPolicies>
</Policies>
</ServiceManifestImport>
The password specified in the RepositoryCredentials element should be encrypted using a certificate deployed on the machine.