Skip to content

Commit c6782a8

Browse files
committed
Spring Cloud 的快速云开发基础环境
Finchley.SR2
1 parent fdc2b51 commit c6782a8

11 files changed

+121
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
server:
2+
port: 9411
3+
4+
zipkin:
5+
collector:
6+
rabbitmq:
7+
addresses: localhost
8+
username: admin
9+
password: 123
10+
useSsl: false
11+
storage:
12+
type: elasticsearch
13+
elasticsearch:
14+
hosts: http://127.0.0.1:9200
15+
max-requests: 64
16+
timeout: 10000
17+
index: zipkin
18+
date-separator: '-'
19+
index-shards: 5
20+
index-replicas: 1
21+
#username:
22+
#password:
23+
# Disabling auto time http requests since it is added in Undertow HttpHandler in Zipkin autoconfigure
24+
# Prometheus module. In Zipkin we use different naming for the http requests duration
25+
metrics:
26+
web:
27+
server:
28+
auto-time-requests: false
29+
30+
spring:
31+
profiles:
32+
active: shared
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
server:
2+
port: 9411
3+
4+
zipkin:
5+
collector:
6+
rabbitmq:
7+
addresses: localhost
8+
username: admin
9+
password: 123
10+
useSsl: false
11+
concurrency: 1
12+
# TCP connection timeout in milliseconds
13+
connection-timeout: 60000
14+
queue: zipkin
15+
virtual-host: /
16+
storage:
17+
type: mem
18+
mem:
19+
# Maximum number of spans to keep in memory. When exceeded, oldest traces (and their spans) will be purged.
20+
# A safe estimate is 1K of memory per span (each span with 2 annotations + 1 binary annotation), plus
21+
# 100 MB for a safety buffer. You'll need to verify in your own environment.
22+
# Experimentally, it works with: max-spans of 500000 with JRE argument -Xmx600m.
23+
max-spans: 500000
24+
25+
spring:
26+
profiles:
27+
active: shared
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
server:
2+
port: 9411
3+
4+
zipkin:
5+
collector:
6+
http:
7+
# Set to false to disable creation of spans via HTTP collector API
8+
enabled: true
9+
storage:
10+
type: mem
11+
mem:
12+
# Maximum number of spans to keep in memory. When exceeded, oldest traces (and their spans) will be purged.
13+
# A safe estimate is 1K of memory per span (each span with 2 annotations + 1 binary annotation), plus
14+
# 100 MB for a safety buffer. You'll need to verify in your own environment.
15+
# Experimentally, it works with: max-spans of 500000 with JRE argument -Xmx600m.
16+
max-spans: 500000
17+
18+
spring:
19+
profiles:
20+
active: shared
21+

easy-spring-cloud-zipkin/readme.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Zipkin Server
2+
3+
Sleuth 和 Zipkin 分布式服务追踪系统(Distributed Systems Tracing System)。
4+
5+
支持:
6+
- HTTP 收集器 + Mem 存储
7+
- RabbitMQ 收集器 + ElasticSearch 存储
8+
9+
10+
11+
## 需求
12+
13+
JRE 8+
14+
15+
- 可能需要
16+
- RabbitMQ
17+
- ElasticSearch
18+
19+
## 启动
20+
21+
Run `.bat` or `.sh`.
22+
23+
## 访问 UI
24+
25+
`http://your_host:9411/zipkin/`
26+
27+
# END
28+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
start cmd /c java -jar -Dspring.config.location=application-rabbitmq-elasticsearch.yml zipkin-server-2.11.12-exec.jar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
java -jar -Dspring.config.location=application-rabbitmq-elasticsearch.yml zipkin-server-2.11.12-exec.jar
3+
# nohup java -jar zipkin-server-2.11.12-exec.jar --server.port=9411 --zipkin.collector.rabbitmq.addresses=localhost --zipkin.collector.rabbitmq.username=admin --zipkin.collector.rabbitmq.password=123 &
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
start cmd /c java -jar -Dspring.config.location=application-rabbitmq.yml zipkin-server-2.11.12-exec.jar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
java -jar -Dspring.config.location=application-rabbitmq.yml zipkin-server-2.11.12-exec.jar
3+
# nohup java -jar zipkin-server-2.11.12-exec.jar --server.port=9411 --zipkin.collector.rabbitmq.addresses=localhost --zipkin.collector.rabbitmq.username=admin --zipkin.collector.rabbitmq.password=123 &
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
start cmd /c java -jar -Dspring.config.location=application.yml zipkin-server-2.11.12-exec.jar
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
java -jar -Dspring.config.location=application.yml zipkin-server-2.11.12-exec.jar
3+
# nohup java -jar zipkin-server-2.11.12-exec.jar &

0 commit comments

Comments
 (0)