-
Notifications
You must be signed in to change notification settings - Fork 151
Monitor
Tony Shen edited this page Jun 14, 2019
·
9 revisions
NetDiscovery 支持对 Spider、SpiderEngine 的监控。
首先,需要在 ZooKeeper 集群创建 /netdiscovery 节点
然后单独运行一个 Monitor 进程
public class TestCuratorManager {
public static void main(String[] args) {
CuratorManager curatorManager = new CuratorManager();
curatorManager.start();
}
}
然后,在 application.yaml 中配置 useZk、zkStr 属性
spiderEngine:
config:
port: 8715
useMonitor: false
registry:
zookeeper:
zkStr: "localhost:2181"
zkPath: "/netdiscovery"
下图反映了 ZooKeeper 如何监控 SpiderEngine 集群。
- Configuration
- Downloader
- vertx webclient
- urlconnection
- http client
- okhttp3
- file
- selenium
- Chrome
- Firefox
- IE
- Phantomjs
- htmlunit
- Queue
- ConcurrentLinkedQueue
- Disruptor
- Redis
- Kafka
- RabbitMQ
- RocketMQ
- Parser
- Pipeline
- Rate limiting
- RPC
- Jobs
- Vert.x EventBus
- User Agent Pools
- IP Pools
- Cookies Pools
- Monitor
- Spider
- SpiderEngine
- DSL
- Coroutines
- ChangeLog