English | 中文
polaris-java-agent provides a non-invasive way for Java applications to connect with polaris for service management, and provides the following functions:
- Service registration discovery
- Dynamic routing and load balancing
- The faulty node is blown
- Service throttling
Currently, Java applications developed based on the following frameworks are supported for access:
- dubbox(version >= 2.8.4)
- dubbo(version >= 2.7.0)
- spring-cloud(version >= 2020.0.0)
This document describes how to use polaris-java-agent to access polaris service governance.
polaris-java-agent injects interceptors into applications through Java bytecode enhancement technology to realize the docking of Polaris service governance capabilities.
polaris-java-agent provides the following configuration items, all of which can be configured through files (polaris.config) and system variables (-D parameters).
Configuration item | Meaning | Required | Default value |
---|---|---|---|
agent.application.namespace | namespace for the service | no | default |
agent.application.name | application name, used for monitoring display | yes | no |
agent.polaris.registry | Polaris server IP address | Yes | No |
agent.application.healthcheck.ttl | Service check check TTL, in seconds | no | 5 |
agent.consumer.refresh.interval | Service list refresh interval, in seconds | No | 2 |