Manage probes

更新时间:
复制 MD 格式

Application High Availability Service (AHAS) uses probes to collect required information from your system. This topic describes how to install, upgrade, stop, and uninstall probes.

What are probes?

Application High Availability Service (AHAS) includes the following two types of probes:

  • AHAS probe: a standalone process that is installed on an operating system to collect architecture information. This probe is required for the Architecture Awareness and Chaos Engineering features.
  • AHAS Java agent: a Java agent for the JVM that uses bytecode enhancement to provide real-time monitoring and traffic protection.

Install the AHAS probe

  1. Log on to the AHAS console.

  2. In the left-side navigation pane, choose Chaos Engineering > Overview.
  3. On the Overview page, in the Welcome to Chaos Engineering section, click Install Drill Agent.
  4. Select the probe's target environment and the corresponding installation method.
    • ECS: To install the probe on an ECS instance, click ECS. For more information, see Connect to ECS instances.
    • self-managed Kubernetes: To install the probe in a self-managed Kubernetes cluster, click self-managed Kubernetes. For more information, see Connect to a self-managed Kubernetes cluster.
    • Container Service for Kubernetes: To install the probe in a Container Service for Kubernetes (ACK) cluster, click Container Service for Kubernetes. For more information, see Connect to ACK clusters.

Install the AHAS Java agent

  1. Log on to the AHAS console.

  2. In the left-side navigation pane, choose Chaos Engineering > Overview.
  3. In the left-side navigation pane, choose Probe Management. On the Host tab, click Access Probe in the upper-right corner.
    Select an installation method based on your application's connection type. For more information, see Application connection methods.

Upgrade the AHAS probe

  • AHAS automatically upgrades probes installed on or after December 21, 2018.
  • If your AHAS probe was installed before December 21, 2018, uninstall it and then install the latest version.

Stop the AHAS probe

  1. Log on to the AHAS console.

  2. In the left-side navigation pane, choose Chaos Engineering > Overview.
  3. In the left-side navigation pane, choose Probe Management.
  4. On the Probe Management page, on the Host tab, find the target probe and click Stop in the Actions column.

Uninstall the AHAS probe

If you no longer need the AHAS probe, uninstall it promptly. Otherwise, the system periodically checks for and restarts the AHAS process. The AHAS probe process also restarts automatically each time your host reboots.

You can uninstall the AHAS probe from the console or by running an uninstallation script.

  • To uninstall the AHAS probe from the console:
    1. Log on to the AHAS console and select a region in the upper-left corner of the page.
    2. In the left-side navigation pane, choose Chaos Engineering > Overview.
    3. In the left-side navigation pane, choose Probe Management.
    4. On the Probe Management page, on the Host tab, find the target probe and click Uninstall in the Actions column.
  • Run the following command to manually uninstall the AHAS probe:

    // Replace <PROBE_DOWNLOAD_URL> with the download URL from the command-line instructions in the console.
    wget -q <PROBE_DOWNLOAD_URL>/agent/prod/latest/aliyunahasctl.sh -O /tmp/aliyunahasctl.sh && sh /tmp/aliyunahasctl.sh uninstall

    On the Kubernetes tab, you can also click Manual Uninstall in the Actions column to get the specific command for manually uninstalling the AHAS probe.

Uninstall the AHAS Java agent

  1. Log on to the AHAS console.

  2. In the left-side navigation pane, choose Chaos Engineering > Overview.
  3. In the left-side navigation pane, choose Probe Management.
  4. On the Probe Management page, click the Kubernetes tab. Find the machine from which you want to uninstall the Java agent, and click Manual Uninstall in the Actions column.

    Choose an uninstallation method based on the probe environment. For more information, see How do I uninstall the Java agent and SDK instrumentation for application protection?.