action Load Balancer

remove_latency_from_endpoint

Remove latency from a particular URL served by your load balancer

Run it now
View details
Typeaction
Modulechaosgcp.lb.actions
Nameremove_latency_from_endpoint
Returnmapping

Usage

JSON

{
  "name": "remove-latency-from-endpoint",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.lb.actions",
    "func": "remove_latency_from_endpoint",
    "arguments": {
      "url": ""
    }
  }
}

YAML

name: remove-latency-from-endpoint
provider:
  arguments:
    url: ''
  func: remove_latency_from_endpoint
  module: chaosgcp.lb.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
project_idstringYesProjectName of the GCP project in which the resource is running
regionstringNoRegionalSet this to the correct region if it is regional
urlstringYesFull Target URLFull target URL including the path

Remove latency from a particular URL.

This is a high level shortcut to the remove_fault_injection_traffic_policy which infers all the appropriate parameters from the URL itself. It does this by querying the GCP project for all LB information and matches the correct target from there.

Signature

def remove_latency_from_endpoint(
        url: str,
        project_id: str = None,
        region: str = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass