了解 Azure Spring Cloud 中的应用状态Understanding app status in Azure Spring Cloud

Azure Spring Cloud UI 提供有关正在运行的应用程序状态信息。The Azure Spring Cloud UI delivers information about the status of running applications. 订阅中的每个资源组都有一个“应用”选项,其中显示了应用程序类型的常规状态。There is an Apps option for each resource group in a subscription that displays general status of application types. 对于每种应用程序类型,均显示“应用程序实例”。For each application type, there is display of Application instances.

应用状态Apps status

若要查看应用程序类型的常规状态,请在资源组的左侧导航窗格中选择“应用”。To view general status of an application type, select Apps in the left navigation pane of a resource group. 结果显示已部署应用的状态:The result displays the status of the deployed app:

  • 预配状态 显示部署的预配状态Provisioning Status shows the deployment’s provisioning state
  • 运行实例 显示正在运行的应用实例数/所需的应用实例数。Running instance shows how many app instances are running/how many app instances are desired. 如果应停止应用,此列将显示“已停止”。If the app should be stopped, this column shows stopped.
  • 已注册实例 显示已向 eureka 注册的应用实例数/所需的应用实例数。Registered Instance shows how many app instances are registered to eureka/how many app instance are desired. 如果应停止应用,此列将显示“已停止”。If the app should be stopped, this column shows stopped.

应用状态

部署状态将报告为以下某个值:The deployment status is reported as one of the following values:

枚举Enum 定义Definition
正在运行Running 应运行部署。The deployment SHOULD be running.
已停止Stopped 应停止部署。The deployment SHOULD be stopped.

只能从 CLI 访问预配状态。将报告为以下某个值:The provisioning state is accessible only from the CLI. It is reported as one of the following values:

枚举Enum 定义Definition
CreatingCreating 正在创建资源。The resource is creating.
更新Updating 正在更新资源。The resource is updating.
成功Succeeded 已成功提供资源并部署二进制文件。Successfully supplied resources and deploys the binary.
失败Failed 未能实现 Succeeded 目标。Failed to achieve the Succeeded goal.
正在删除Deleting 正在删除此资源。The resource is being deleted. 这会阻止操作,并且资源在此状态下不可用。This prevents operation, and the resource is not available in this status.

应用实例状态App instances status

若要查看已部署应用的特定实例的状态,请在“应用”UI 中单击应用的“名称” 。To view the status of a specific instance of a deployed app, click the Name of the app in the Apps UI. 将会显示以下结果:The results will display:

  • 状态:实例是否正在运行或其状态如何Status: Whether the instance is running or its state
  • DiscoveryStatus:Eureka 服务器中应用实例的注册状态DiscoveryStatus: The registered status of the app instance in Eureka server

应用实例状态

实例状态将报告为以下某个值:The instance status is reported as one of the following values:

枚举Enum 定义Definition
正在启动Starting 该二进制文件已成功部署到给定的实例。The binary is successfully deployed to the given instance. 启动 jar 文件的实例可能会失败,因为 jar 无法正常运行。Instance booting the jar file may fail because jar cannot run properly.
正在运行Running 实例正常运行。The instance works.
失败Failed 应用实例多次重试后未能启动用户的二进制文件。The app instance failed to start user’s binary after several retries.
正在终止Terminating 应用实例正在关闭。The app instance is shutting down.

实例的发现状态将报告为以下某个值:The discovery status of the instance is reported as one of the following values:

枚举Enum 定义Definition
UPUP 已将应用实例注册到 Eureka 并准备好接收流量The app instance is registered to eureka and ready to receive traffic
OUT_OF_SERVICEOUT_OF_SERVICE 应用实例已注册到 Eureka 并且能够接收流量。The app instance is registered to Eureka and able to receive traffic. 但会有意关闭流量。but shuts down for traffic intentionally.
DOWNDOWN 应用实例未注册到 Eureka 或已注册但无法接收流量。The app instance is not registered to Eureka or is registered but not able to receive traffic.

请参阅See also