# US 2021/0240507 A1 · Generation, actuation, and enforcement of policies for resources within a distributed computing system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0240507 A1
- Document ID: US20210240507A1
- Status: Published application
- Kind: A1
- Application number: 16/779,494
- Filed: 2020-01-31
- Published: 2021-08-05
- Earliest claimed: 2020-01-31
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Mathieu COLOMBET; Daniel Evan SCHWARTZ; Julie A. PICKHARDT; Prateek GANGWAL
- Web page: https://patentgrep.com/patent/US20210240507A1

## CPC

- G06F 8/60: Software deployment
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5061: {Partitioning or combining of resources}
- G06F 9/5072: {Grid computing}
- G06F 21/335: {for accessing specific resources, e.g. using Kerberos tickets}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The generation, actuation, and enforcement of policies within a distributed computing system is provided. The policies are employed to manage the resources of the system. The resources include virtualized resources, such as virtual machines (VMs) and virtual storage disks (VSDs). A policy includes a rule and scope. Enforcing a policy includes applying the rule to resources that are within the policy's scope. Policies are employed to constrain the leasing period and reclaim leased resources, as well constrain the access of certain users to specific operations on the leased resources. Policies may be created via a UI that automatically generates a policy encoding. The policy is registered and accessed via a policy store. When multiple policies target a common resource, merging strategies are applied to the multiple policies. The multiple policies are ranked, merged, filtered, and any remaining conflicts are resolved to generate an effective policy that is consistent with the multiple policies and is enforced on the common resource.

## Claims

### Claim 1

A method for operating a distributed computing system that comprises a set of resources, the method comprising:
at a policy server employing one or more processors and memory:
accessing a set of policies registered at a policy store, wherein each policy of the set of policies includes a rule and a scope;
for each policy of the set of policies, associating a subset of the set of resources with the policy based on the scope of the policy; and
for each policy of the set of policies, performing an action on each of the resources of the subset of resources associated with the policy based on the rule of the policy.

### Claim 2 (depends on 1)

The method of claim 1, wherein the scope of at least a portion of the policies of the set of policies is indicated by one or more organizations associated with the set of resources.

### Claim 3 (depends on 1)

The method of claim 1, wherein the scope of at least a portion of the policies of the set of policies is indicated by one or more projects associated with the set of resources.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
selecting a first subset of the set of policies, wherein each policy in the first subset of policies has a first scope and is associated with a first subset of resources;
generating an effective policy associated with the first subset of resources based on each of the policies in the first subset of policies; and
enforcing the effective policy on the first subset of resources.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
generating a priority ordering for the first subset of policies based on one or more ordering rules;
filtering the first subset of policies based on one or more incompatible conditions occurring within the first subset of policies; and
iteratively merging the filtered first subset of policies based on the priority ordering to generate the effective policies.

### Claim 6 (depends on 4)

The method of claim 4, further comprising providing a preview indication of a plurality of effects that the effective policy will have on at least a portion of the set of resources.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
providing a user interface (UI) to a user;
receiving a definition of a user policy via the UI;
generating an encoding of the received user policy;
registering the user policy in the policy store; and
providing access to the encoding of the user policy to other users, via the policy store.

### Claim 8 (depends on 1)

The method of claim 1, wherein the policy store include an auditing module that audits the registration of the user policy in the policy store.

### Claim 9 (depends on 1)

The method of claim 1, wherein each policy in the set of policies is encoded in a human-readable notation.

### Claim 10 (depends on 9)

The method of claim 9, wherein the human-readable notation includes at least one of a JavaScript Object Notation (JSON) or a YAML Ain't Markup Language (YAML) notation.

### Claim 11 (depends on 1)

The method of claim 1, wherein each policy in the set of policies includes a policy type.

### Claim 12 (depends on 1)

The method of claim 1, wherein a first policy of the set of policies includes a value for a default lease period of a first resource of the set of resources, a value for a maximum lease period of the first resource, and a value for a grace period of the first resource.

### Claim 13 (depends on 1)

The method of claim 1, wherein a first policy of the set of policies constrains a user from initiating an operation of a first resource of the set of resources.

### Claim 14 (depends on 1)

The method of claim 1, wherein each policy in the set of policies includes an enforcement type of at least two possible values that indicate a priority for ranking the set of policies.

### Claim 15 (depends on 1)

The method of claim 1, wherein the set of resources includes at least a set of virtual machines (VMs) and a set of virtual storage disks (VSDs).

### Claim 16 (depends on 1)

The method of claim 1, wherein each policy in the set of policies includes one or more logical statements that, when applied to each resource in the set of resources, evaluates to true or false, and the evaluation of each of the one or more logical statement is applied as a filter that narrows the scope of the policy.

### Claim 17 (depends on 1)

The method of claim 1, wherein a first policy of the set of policies targets each of a first resource and a resource of the set of resources and the first and second resources are provided by separate resource providers.

### Claim 18 (depends on 1)

The method of claim 1, wherein an enforcement of the set of policies is triggered by an update to a first policy of the set of policies.

### Claim 19

A non-transitory computer-readable storage medium storing one or more programs configured to be executed by a policy server that operates a distributed computing system that comprises a set of resources, the policy server having one or more processors and memory, the one or more programs including instructions for:
accessing a set of policies registered at a policy store, wherein each policy of the set of policies includes a rule and a scope;
for each policy of the set of policies, associating a subset of the set of resources with the policy based on the scope of the policy; and
for each policy of the set of policies, perform an action on each of the resources of the subset of resources associated with the policy based on the rule of the policy.

### Claim 20

A distributed-computing system comprising:
a set of resources; and
a policy server having one or more processors and memory storing one or more programs configured to be executed by the one or more processors, the one or more programs including instructions for:
accessing a set of policies registered at a policy store, wherein each policy of the set of policies includes a rule and a scope;
for each policy of the set of policies, associating a subset of the set of resources with the policy based on the scope of the policy; and
for each policy of the set of policies, perform an action on each of the resources of the subset of resources associated with the policy based on the rule of the policy.
