Skip to content

Commit 5c4cc76

Browse files
committed
ci: release v1.8.6
1 parent c7a73af commit 5c4cc76

File tree

9 files changed

+101
-77
lines changed

9 files changed

+101
-77
lines changed

.docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
FROM registry:5000/gobase:1.12.1-alpine3.9 AS gobuild
22

3-
ADD . /go-fluentd
3+
ENV GO111MODULE=on
44
WORKDIR /go-fluentd
5+
COPY go.mod .
6+
COPY go.sum .
7+
RUN go mod download
58

69
# static build
10+
ADD . .
711
RUN go build -a --ldflags '-extldflags "-static"' entrypoints/main.go
812

913

.docker/forward.Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
# cp /forward/settings.yml /data/Sit/go-fluentd/settings/.
55
FROM registry:5000/golang:1.12.1-stretch AS gobin
66

7-
# http proxy
8-
ENV HTTP_PROXY=http://172.16.4.26:17777
9-
ENV HTTPS_PROXY=http://172.16.4.26:17777
7+
ENV GO111MODULE=on
108

11-
ADD . /go-fluentd
129
WORKDIR /go-fluentd
10+
COPY go.mod .
11+
COPY go.sum .
12+
RUN go mod download
1313

1414
# static build
15+
ADD . .
1516
RUN go build --ldflags '-extldflags "-static"' entrypoints/main.go
1617

1718
# copy executable file and certs to a pure container

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44

55

66

7+
*v1.8.6*
8+
---
9+
10+
- 2019-05-23 (Laisky) perf: reduce alloc in es sender
11+
- 2019-05-22 (Laisky) ci: upgrade golang to 1.12.5
12+
- 2019-05-22 (Laisky) perf: only allow one rotate waiting
13+
- 2019-05-22 (Laisky) perf: only load all ids once
14+
- 2019-05-22 (Laisky) fix: upgrade go-utils to v1.3.1
15+
16+
*1.8.5*
17+
---
18+
19+
- 2019-05-15 (Laisky) docs: update readme
20+
- 2019-05-14 (Laisky) ci: improve docker cache
21+
- 2019-05-08 (Laisky) feat(paas-344): add prometheus metrics at `/metrics`
22+
723
*1.8.4*
824
---
925

dispacher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (d *Dispatcher) Run() {
8282
utils.Logger.Error("try to spawn new tagpipeline got error",
8383
zap.Error(err),
8484
zap.String("tag", msg.Tag))
85+
continue
8586
} else {
8687
d.concatorMap.Store(msg.Tag, inChanForEachTag)
8788
d.tagsCounter.Store(msg.Tag, utils.NewCounter())

docs/README_cn.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -555,25 +555,25 @@ golang 的性能调优真是器大活好!
555555
```go
556556
// supported action:
557557
// cmdline, profile, symbol, goroutine, heap, threadcreate, debug/block
558-
Server.Any("/admin/pprof/{action:path}", pprof.New())
558+
Server.Any("/pprof/{action:path}", pprof.New())
559559
```
560560

561561
然后就可以调用:
562562

563-
- `/admin/pprof/cmdline`:启动时的命令行参数
564-
- `/admin/pprof/profile`:下载 CPU dump
565-
- `/admin/pprof/symbol`
566-
- `/admin/pprof/goroutine`:goroutine 信息
567-
- `/admin/pprof/heap`:下载 heap dump
568-
- `/admin/pprof/heap?debug=1`:一些运行时信息
569-
- `/admin/pprof/threadcreate`
570-
- `/admin/pprof/debug/block`
571-
- `/admin/pprof/`
563+
- `/pprof/cmdline`:启动时的命令行参数
564+
- `/pprof/profile`:下载 CPU dump
565+
- `/pprof/symbol`
566+
- `/pprof/goroutine`:goroutine 信息
567+
- `/pprof/heap`:下载 heap dump
568+
- `/pprof/heap?debug=1`:一些运行时信息
569+
- `/pprof/threadcreate`
570+
- `/pprof/debug/block`
571+
- `/pprof/`
572572

573573

574574
### CPU Profile
575575

576-
针对 CPU 做优化时最常用的就是 profile,访问 `/admin/pprof/profile` 后,
576+
针对 CPU 做优化时最常用的就是 profile,访问 `/pprof/profile` 后,
577577
会自动启动采样,等待 30 秒后,会下载一个 `profile` 文件,然后就可以启动 go tool 的交互式工具:
578578

579579
```sh

docs/quickstart.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ You can load monitor metrics by <http://localhost:8080/monitor>
160160

161161
This HTTP API also support pprof endpoints:
162162

163-
- <http://localhost:8080/admin/pprof/profile>
164-
- <http://localhost:8080/admin/pprof/cmdline>
165-
- <http://localhost:8080/admin/pprof/symbol>
166-
- <http://localhost:8080/admin/pprof/goroutine>
167-
- <http://localhost:8080/admin/pprof/heap>
168-
- <http://localhost:8080/admin/pprof/heap?debug=1>
169-
- <http://localhost:8080/admin/pprof/threadcreate>
170-
- <http://localhost:8080/admin/pprof/debug/block>
171-
- <http://localhost:8080/admin/pprof/>
163+
- <http://localhost:8080/pprof/profile>
164+
- <http://localhost:8080/pprof/cmdline>
165+
- <http://localhost:8080/pprof/symbol>
166+
- <http://localhost:8080/pprof/goroutine>
167+
- <http://localhost:8080/pprof/heap>
168+
- <http://localhost:8080/pprof/heap?debug=1>
169+
- <http://localhost:8080/pprof/threadcreate>
170+
- <http://localhost:8080/pprof/debug/block>
171+
- <http://localhost:8080/pprof/>
172172

go.mod

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,16 @@ go 1.12
44

55
require (
66
github.com/Laisky/go-syslog v2.3.3+incompatible
7-
github.com/Laisky/go-utils v0.0.0-20190417014032-53d5982d5343
7+
github.com/Laisky/go-utils v1.3.2
88
github.com/Laisky/zap v1.9.2
99
github.com/Shopify/sarama v1.22.0
10-
github.com/ajg/form v1.5.1 // indirect
1110
github.com/cespare/xxhash v1.1.0
12-
github.com/gavv/monotime v0.0.0-20171021193802-6f8212e8d10d // indirect
13-
github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31 // indirect
14-
github.com/google/go-querystring v1.0.0 // indirect
15-
github.com/imkira/go-interpol v1.1.0 // indirect
16-
github.com/iris-contrib/httpexpect v0.0.0-20180314041918-ebe99fcebbce // indirect
11+
github.com/iris-contrib/middleware v0.0.0-20181021162728-8bd5d51b3c2e
1712
github.com/json-iterator/go v1.1.6
18-
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
1913
github.com/kataras/iris v11.1.1+incompatible
20-
github.com/mattn/go-colorable v0.1.1 // indirect
21-
github.com/moul/http2curl v1.0.0 // indirect
22-
github.com/onsi/ginkgo v1.8.0 // indirect
23-
github.com/onsi/gomega v1.5.0 // indirect
24-
github.com/pierrec/xxHash v0.1.5 // indirect
2514
github.com/pkg/errors v0.8.1
26-
github.com/sergi/go-diff v1.0.0 // indirect
27-
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
15+
github.com/prometheus/client_golang v0.9.2
2816
github.com/spf13/pflag v1.0.3
2917
github.com/spf13/viper v1.3.2
3018
github.com/tinylib/msgp v1.1.0
31-
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
32-
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
33-
github.com/xeipuuv/gojsonschema v1.1.0 // indirect
34-
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
35-
github.com/yudai/gojsondiff v1.0.0 // indirect
36-
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
37-
github.com/yudai/pp v2.0.1+incompatible // indirect
3819
)

0 commit comments

Comments
 (0)