You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否在GoCD Server页面检查Agent健康状态?如何实时显示Agent离线状态?

Hey there! Let's tackle your GoCD questions one by one, along with some notes tailored to your Docker Compose setup:

1. Checking Agent Health Status in GoCD Server UI

Absolutely! You can easily monitor your GoCD Agents' health directly from the server's web interface:

  • Log into your GoCD Server dashboard (since your setup maps port 80 to 8153, you can access it at http://<your-server-ip>)
  • Navigate to the Agents tab (found in the top navigation bar of the dashboard)
  • This tab shows a full list of all registered agents, with clear status labels like Idle, Building, Lost Contact, or Disabled
  • For deeper health details, click on an agent's name—you’ll get specifics like the last heartbeat time, available resources, and any error logs if the agent is facing connectivity issues.
2. Real-Time Status Updates for Disconnected Agents

GoCD’s UI is built to reflect agent status changes in near real-time, but there are a few tweaks to your setup that can help ensure this works reliably:

  • Heartbeat Mechanism: GoCD Agents send regular heartbeats to the server. If an agent goes offline or loses connectivity, the server will mark it as Lost Contact within a couple of minutes, and this status will update automatically in the Agents tab.
  • Docker Network Improvement: Your current config uses legacy links to connect agents to the server. For more stable network communication (which helps maintain consistent agent-server heartbeats), switch to a custom Docker network instead. Here’s an adjusted version of your Compose file:
version: "2"
networks:
  gocd-network:
    driver: bridge
services:
  gocd-server:
    container_name: gocd-server
    image: gocd/gocd-server-centos-7:v19.5.0
    ports:
      - '80:8153'
      - '8154:8154'
    networks:
      - gocd-network
  gocd-agent1:
    container_name: panda
    image: gocd/gocd-agent-centos-7:v19.5.0
    environment:
      - GO_SERVER_URL=https://gocd-server:8154/go
    networks:
      - gocd-network
  gocd-agent2:
    container_name: kitty
    image: gocd/gocd-agent-centos-7:v19.5.0
    environment:
      - GO_SERVER_URL=https://gocd-server:8154/go
    networks:
      - gocd-network
  • Auto-Refresh Check: The Agents tab has auto-refresh enabled by default, so you shouldn’t need to manually reload the page to see an agent’s disconnected status. If you’re not seeing updates, double-check that there are no firewall rules or network issues blocking communication between the agent and server containers.

内容的提问来源于stack exchange,提问作者Tornado

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 08:31:11