Fault Diagnosis and Detection using Istio within Alibaba Cloud Container Service for Kubernetes

Previous articles in the series use an official example to demonstrate how to deploy an application in the Istio environment; how to configure intelligent routing and distributed tracing; and how to configure Istio functions of collecting, querying, and visualizing the telemetry data.

This article continues to use this example to demonstrate how to use the fault diagnosis and detection tool Weave Scope in Istio.

Weave Scope automatically generates the application mapping, which enables you to directly learn, monitor, and control your microservice container applications.With Weave Scope, you can conveniently monitor the relationship between containers and monitor the container-based and microservice-based applications, helping you learn the running status of applications and containers.

Experimenting with Weave Scope

Learning Docker Container Status in Real Time

In the Kubernetes environment, run the following command to check that Weave Scope is running properly:

kubectl -n istio-system get svc weave-scope-app
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
....

Click Services on the left-side navigation bar. Then, click the access address of the created Weave Scope service on the right side, as shown below:

Image for post
Image for post

On the Weave Scope UI, you can view the general information about the container infrastructure or focus on a special microserviceto easily identify and correct faults and ensure stability and performance of your container-based applications, as shown below:

Image for post
Image for post

Dependency and Internal Details

Click the productpage icon in the example. You can view its dependency and specific content details, including:

Image for post
Image for post

Container Interaction and Management

Click productpage of the container. You can view the indicators, labels and metadata, and container CPU and memory usage.You can conveniently switch between processes in the host where the container runs to view the related information.

In addition, you can directly interact with the container on a container productpage, for example, pausing, restarting, or stopping the container, or start the command line.

Image for post
Image for post

Start the command line in the browser:

Image for post
Image for post

Summary

We can use Alibaba Cloud Container Service for Kubernetes to quickly build an Istio open platform for connecting, managing, and securing microservices, and to introduce and configure multiple relevant services for applications.Previous articles in the series use an official example to demonstrate how to deploy an application in the Istio environment; how to configure intelligent routing and distributed tracing; and how to configure Istio functions of collecting, querying, and visualizing the telemetry data.This article continues to use this example to demonstrate how to use the fault diagnosis and detection tool Weave Scope in Istio.

You are welcome to use Alibaba Cloud Container Service for Kubernetes to quickly build an Istio open platform and integrate Istio to microservice development in your project.

This article series introduces Istio and its core components, as well as describes how to quickly build an Istio open platform for connecting, managing, and securing microservices on the basis of Alibaba Cloud Container Service for Kubernetes. These articles also use an official example to demonstrate how to deploy an application in the Istio environment; how to configure intelligent routing and distributed tracing; and how to configure Istio functions of collecting, querying, and visualizing the telemetry data.

To review these articles, see:

Reference:

https://www.alibabacloud.com/blog/fault-diagnosis-and-detection-using-istio-within-alibaba-cloud-container-service-for-kubernetes_593933?spm=a2c4.11965616.0.0

Written by

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store