Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from housepower:master #46

Open
wants to merge 415 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
415 commits
Select commit Hold shift + click to select a range
ea2479c
revised Dockerfile
yuzhichang Sep 19, 2021
bd86687
fixed Ring.ForceBatchOrShard
yuzhichang Sep 19, 2021
1b154d1
fixed Sinker.Close
yuzhichang Sep 20, 2021
e24ece1
fix cond wait blocked forever
yuzhichang Sep 18, 2021
c80bcb0
task scheduling doc
yuzhichang Sep 23, 2021
3ca5a98
Update value.go
draev Sep 22, 2021
7c8350e
fixed FixedString
yuzhichang Sep 24, 2021
e0c3eba
minor doc
yuzhichang Sep 24, 2021
bc9b7fd
improved several Stop
yuzhichang Sep 24, 2021
f41c36a
removed logPaths from config
yuzhichang Sep 27, 2021
abd31ec
fixed dead wait
yuzhichang Oct 16, 2021
68751c9
added parser test case for inf
yuzhichang Oct 14, 2021
882987b
added __series_id
yuzhichang Oct 14, 2021
65c3e5c
series draft 2
yuzhichang Oct 15, 2021
2e058c7
series draft3
yuzhichang Oct 15, 2021
dffc6bd
fixed c.idxLabels, handle missed labels in series table
yuzhichang Oct 16, 2021
47fe172
removed statistics_test.go
yuzhichang Oct 17, 2021
26f8ca7
make lint happy
yuzhichang Oct 17, 2021
daf0a15
fixed duplicated series_id in series table
yuzhichang Oct 18, 2021
8749237
recoverSeriesSchema, recoverSeriesData
yuzhichang Oct 18, 2021
3a1a581
make lint happy
yuzhichang Oct 18, 2021
23546bc
fixed systest
yuzhichang Oct 18, 2021
825ff25
fixed recoverSeriesData
yuzhichang Oct 18, 2021
c4072d2
don't put __name__ into labels
yuzhichang Oct 19, 2021
9f7199a
respect batchSize boundary
yuzhichang Oct 19, 2021
a52f768
fixed Service.Stop dead lock
yuzhichang Oct 19, 2021
bb4c621
removed le from labels
yuzhichang Oct 20, 2021
310358e
don't store labels into the metric table
yuzhichang Oct 20, 2021
1797a28
gjson detect new keys
yuzhichang Oct 22, 2021
0391e93
added gjson dynamicSchema support
yuzhichang Oct 23, 2021
710a75b
updated dependencies
yuzhichang Oct 23, 2021
f32aee6
removed logrus
yuzhichang Oct 23, 2021
241cfb4
fix idle
yuzhichang Oct 25, 2021
cb99978
detect metric name key
yuzhichang Oct 29, 2021
3cea60f
added white and black list for dynamic key detection
yuzhichang Nov 2, 2021
eeb903b
fixed incorrect labels
yuzhichang Nov 2, 2021
2a95229
added TaskConfig.TimeUnit
yuzhichang Nov 2, 2021
0a0199a
added support for UUID and Enum
yuzhichang Nov 3, 2021
f7e85b9
added some doc for UUID and Enum
yuzhichang Nov 4, 2021
8690bd9
skip bad rows
yuzhichang Nov 4, 2021
7f89e31
adjusted replicaSpecificErrorCodes
yuzhichang Nov 5, 2021
d4578fa
more columns on kafka meta data
yuzhichang Nov 10, 2021
f82c1e7
create_table_query differ among 21.8.9.13, 21.10.1.8013 and 21.10.2.15
yuzhichang Nov 12, 2021
20f3a85
fixed ForceBatchOrShard became idle incorrectly
yuzhichang Nov 12, 2021
544aac3
fixed time.After leak
yuzhichang Nov 15, 2021
5ca55ad
GetTaskStateAndLags
yuzhichang Nov 15, 2021
b5e5551
added state endpoint
yuzhichang Nov 15, 2021
cc7406d
added GetTaskStateAndLag
yuzhichang Nov 15, 2021
3d07fdb
enabled sarama and kafka-go log
yuzhichang Nov 15, 2021
c39cc30
changed default kafka version to 2.0.0
yuzhichang Nov 15, 2021
1b81b64
added franz
yuzhichang Nov 16, 2021
682347c
onPartitionRevoked
yuzhichang Nov 16, 2021
064ab77
fix ErrDataLoss at startup
yuzhichang Nov 17, 2021
c3c15f2
optimized franz config
yuzhichang Nov 17, 2021
b9db7a2
added franz secrity
yuzhichang Nov 17, 2021
e58aa71
revised KafkaFranz, KafkaSarama and KafkaGo Stop
yuzhichang Nov 17, 2021
7a23ba3
changed default kafka client from sarama to franz
yuzhichang Nov 17, 2021
28cb7d6
fix tx goroutine leak
yuzhichang Nov 17, 2021
31e334b
quoted cluster, database and table in sql
yuzhichang Nov 18, 2021
0b9b1df
normallizeTask check cluster name
yuzhichang Nov 18, 2021
512e140
added __mgmt_id
yuzhichang Nov 26, 2021
e7eb2d1
minor comment
yuzhichang Nov 30, 2021
1d44572
deduplicated per __mgmt_id
yuzhichang Nov 30, 2021
1acefda
adjusted __series_id and __mgmt_id from uint64 to int64
yuzhichang Dec 1, 2021
a1d241f
updated sonic
yuzhichang Dec 1, 2021
2bc40bb
replaced ShardingPolicy with ShardingStripe
yuzhichang Dec 1, 2021
3e7e7a9
make lint happy
yuzhichang Dec 1, 2021
5862277
fixed Sharder.PutElems
yuzhichang Dec 1, 2021
c53010d
calculate __mgmt_id
yuzhichang Dec 2, 2021
9cf8e48
column name shall not be empty string
yuzhichang Dec 2, 2021
051032a
fix typo
yuzhichang Dec 17, 2021
9d34477
speedup initBmSeries
yuzhichang Dec 31, 2021
4aa298a
log pid at startup
yuzhichang Jan 23, 2022
97263f4
log on Service.drain
yuzhichang Jan 24, 2022
b2caa69
added env local-cfg-file
yuzhichang Jan 24, 2022
16bcf3e
add doc on how to run as a service
yuzhichang Feb 3, 2022
3553c0f
bump franz-go to v1.3.4
yuzhichang Feb 22, 2022
c679e67
build kafka_gen_log and kafka_gen_metric for arm64
yuzhichang Apr 18, 2022
4e1d9f2
bump franz-go to v1.5.0, fix kerberos breakage
twmb May 2, 2022
f15b2c2
Merge pull request #154 from twmb/master
yuzhichang May 3, 2022
df435b7
let lint happy
yuzhichang May 3, 2022
c806524
improved lint.yml
yuzhichang May 4, 2022
c0180eb
escape labels
yuzhichang May 26, 2022
7580a1d
introduced LoadSeriesAtStartup
yuzhichang May 27, 2022
053e8ee
KafkaFranz.CommitMessages retry cl.CommitRecords
yuzhichang May 30, 2022
eaba9da
bump thirdparty dependencies to latest releases
yuzhichang Jun 14, 2022
5bd5fb6
introduced PromLabelsBlackList
yuzhichang Jun 22, 2022
ccf3b5b
removed non-OSS gitleaks
yuzhichang Jun 23, 2022
d155e30
treat KEEPER_EXCEPTION as retriable
yuzhichang Jun 28, 2022
14a5620
adjusted loglevel of batch creation
yuzhichang Jun 30, 2022
dc11462
bump roaring, clickhouse-server and go
yuzhichang Jun 30, 2022
b492fc8
bump clickhouse_go v2.2.0
yuzhichang Jun 30, 2022
f71e0fb
reworked Decimal support
yuzhichang Jun 30, 2022
053e61f
added Bool support
yuzhichang May 10, 2022
4170062
make lint happy
yuzhichang Jun 30, 2022
20998a1
Use franz-go to calculate lags, close #155
yuzhichang Jun 30, 2022
d354aa4
use clickhouse-go/v2 write native
yuzhichang Jul 1, 2022
019fa9e
replaced github.com/pkg/errors with github.com/thanos-io/thanos/pkg/e…
yuzhichang Jul 1, 2022
20fa8e0
added kafka_gen_prom
yuzhichang Jul 1, 2022
e29f04e
kafka_gen_prom uses franz instead of sarama
yuzhichang Jul 1, 2022
a6d4efd
introduced WritingDurations
yuzhichang Jul 2, 2022
bc140b5
kafka_gen_log and kafka_gen_metric use franz
yuzhichang Jul 3, 2022
53f4e1c
don't escape username and password
yuzhichang Jul 12, 2022
4257d32
replaced roaring64 with map
yuzhichang Jul 13, 2022
3fe318a
generic code to work around https://github.com/ClickHouse/clickhouse-…
yuzhichang Jul 20, 2022
55aea1a
boundary check for integers and floats
yuzhichang Jul 21, 2022
fb0c86b
bump dependent modules
yuzhichang Jul 21, 2022
86311cd
updated generators
yuzhichang Jul 25, 2022
e6f8397
fixed supported column types
yuzhichang Jul 26, 2022
48c063b
more doc on storing prometheus metrics
yuzhichang Aug 1, 2022
45c5b33
support default nacos port
yuzhichang Aug 8, 2022
452015f
better error check for franz
yuzhichang Aug 11, 2022
35f660c
changed to go 1.19 and bumped dependencies
yuzhichang Aug 13, 2022
cacfb12
bump golangci-lint
yuzhichang Aug 13, 2022
8f31b6f
changed kafka_gen_prom schema
yuzhichang Aug 15, 2022
9fdbf60
clickhouse_sinker shall not depend on sonic. sonic doesn't work on Hy…
yuzhichang Aug 17, 2022
0014418
bump franz-go to v1.7.0 to fix https://github.com/twmb/franz-go/issue…
yuzhichang Aug 23, 2022
2e2e604
bumped clickhouse-go to v2.3.0
yuzhichang Aug 26, 2022
4d3f02e
bump franz-go v1.7.1
yuzhichang Sep 3, 2022
db78e57
added JSON support
yuzhichang Sep 19, 2022
3ea8c48
pause parsing series when writing another series
yuzhichang Sep 21, 2022
daaa966
introduced Clickhouse.AllowWriteSeries
yuzhichang Sep 21, 2022
56cb62e
fix systest
yuzhichang Sep 21, 2022
ef2acee
bump sonic to v1.5.0
yuzhichang Sep 22, 2022
bdba334
fixed fastjson dot characters in key
yuzhichang Oct 8, 2022
8f216db
record mapping from series_id to mgmt_id, and allow write when the si…
yuzhichang Oct 9, 2022
a895121
Sinker should not abort when facing zookeeper session expired issue
Oct 25, 2022
48706a5
Fix sinker error 'invalid autocommit options specified when a group w…
Nov 9, 2022
c1629d3
Add comments for the change of replicaSpecificErrorCodes
momingkotoba Oct 25, 2022
496d68f
Add a new metric parsed_ring_msgs
momingkotoba Nov 3, 2022
bc6e260
Correct the GetShift call
momingkotoba Nov 9, 2022
2a28675
Fix the Create table error 'table already exists'
momingkotoba Nov 30, 2022
1180257
Fix the 'segmentation violation' in ch-go
momingkotoba Nov 30, 2022
6bc3dc0
added stats on AllowWriteSeries
yuzhichang Dec 5, 2022
e673158
register stats
yuzhichang Dec 5, 2022
d19f50e
writeSeries log
yuzhichang Dec 5, 2022
3ad40da
comment
yuzhichang Dec 5, 2022
28b6288
reset wrSeries timely
yuzhichang Dec 5, 2022
266fd14
always allow writing new series
yuzhichang Dec 7, 2022
8fab1c3
feat: Add clickhouse Map type support
momingkotoba Dec 8, 2022
e12a7b4
systest pass
yuzhichang Dec 9, 2022
827b20b
fix ClickHouse.Init goroutine leak
yuzhichang Dec 9, 2022
932f50c
Small updates to allow TLS connections for AWS MSK, etc.
genzgd Dec 8, 2022
ecb59e0
Merge pull request #169 from genzgd/ssl_fixes
yuzhichang Dec 9, 2022
6a52833
Fix - invalid autocommit options specified when a group was not speci…
momingkotoba Dec 12, 2022
b452c6d
format hjson files
yuzhichang Dec 18, 2022
0a4add9
Group the tasks by consumerGroup property to reduce number of kafka c…
momingkotoba Dec 23, 2022
d15caf7
restart the consumergroup when facing offset commit error
momingkotoba Dec 25, 2022
379f657
calculate the shard number based on message offset when shardingKey w…
momingkotoba Dec 28, 2022
dfc271d
Build up the Consumers map when normalizing the Config
momingkotoba Dec 30, 2022
ac3ce76
Update the doc and allow customization of DatabaseName in task level
momingkotoba Jan 2, 2023
a8befbc
Offset shift should only be calculated once per task
momingkotoba Jan 3, 2023
74821f1
Allow self-defined series table name
momingkotoba Jan 17, 2023
faad076
Delete Quota when stopping corresponding tasks
momingkotoba Jan 20, 2023
e34be13
Add support of ingesting multi-value metrics
momingkotoba Jan 31, 2023
2b7874d
Ignore the SIGHUP signal
momingkotoba Feb 6, 2023
f15f2cf
Fix changing TimeUnit config property does not trigger config reload
momingkotoba Feb 20, 2023
6dc62be
Fix sinker crash because of illegal TimeZone issue & Decimal parsing …
momingkotoba Feb 20, 2023
07ec921
fix - Metrics from GoCollector and ProcessCollector are now being pus…
momingkotoba Feb 23, 2023
2af3853
Refine the error msg
momingkotoba Feb 28, 2023
5837a98
remove the rowpool & rowspool, reduce the GLBWritingPool size to lowe…
momingkotoba Feb 28, 2023
4751006
Exit immediately when receiving one more termination signal
momingkotoba Mar 1, 2023
d41eef1
feat - Limit the fetch size and poll size based on the BufferSize pro…
momingkotoba Mar 2, 2023
187fea3
Create containers with initial size
momingkotoba Mar 2, 2023
55c6db0
Combine nacos log into sinker log
momingkotoba Mar 6, 2023
f4eb186
update dmseries quota map when applying new config, retry query when …
momingkotoba Mar 8, 2023
57d39c4
reload bmseries every day to offload out-of-date record
momingkotoba Mar 8, 2023
180029f
calculate topic lags every 10 seconds
momingkotoba Mar 8, 2023
595df6d
update the systest script to cover the blacklist&whitelist
momingkotoba Mar 10, 2023
45afaf3
make lint happy
momingkotoba Mar 10, 2023
685f94c
fix clickhouse acquire conn timeout issue
momingkotoba Mar 10, 2023
dc4d0b4
Have writingpool per shard to avoid ErrAcquireConnTimeout
momingkotoba Mar 23, 2023
8cf39ce
added PLAIN support
yuzhichang Mar 24, 2023
2c371fc
simplify convertKfkSecurity
yuzhichang Mar 27, 2023
40a5f67
perf - avoid creating kafka client everytime when caculate lags
momingkotoba Mar 23, 2023
0b28e44
fix - avoid program running into stuck when facing fatalpanic
momingkotoba Mar 23, 2023
05af994
Automatically end sinker if it remains inactive in last 10 mins
momingkotoba Apr 7, 2023
7b0e833
chore - no more input when context canceled
momingkotoba Apr 10, 2023
8125e26
chore - update the makefile to calculate case coverage
momingkotoba Apr 21, 2023
605533f
chore - add test file for TestJksToPem
momingkotoba Apr 23, 2023
10dad19
feat - two new properties to manage reloading of bmseriesMap
momingkotoba Apr 28, 2023
b786986
Add a new http endpoint /debug/vars for viewing contents of seriesMap
momingkotoba May 12, 2023
57bf7e7
update logical cluster table schema when idenfying new columns
momingkotoba May 12, 2023
be49fcf
Allow writing non-numeric metric
momingkotoba May 19, 2023
07f0d13
Separate tcp port test in a func
sashayakovtseva Aug 1, 2023
0abf312
Allow to specify http host to bound to
sashayakovtseva Aug 1, 2023
7660cc3
Merge pull request #179 from viru-tech/set-host
yuzhichang Aug 1, 2023
bdbee38
Add new envs in comment
sashayakovtseva Aug 1, 2023
b3d9d2a
Read credentials from envs or flags
sashayakovtseva Aug 1, 2023
b34051a
Apply credentials from envs to final config
sashayakovtseva Aug 1, 2023
9e345c4
Fix build
sashayakovtseva Aug 1, 2023
491707d
Update go version in CI
sashayakovtseva Aug 1, 2023
523bedc
Fix tests in CI
sashayakovtseva Aug 1, 2023
5ffaf07
Apply credentials in config.Normalize
sashayakovtseva Aug 2, 2023
b6e253e
Log config without passwords
sashayakovtseva Aug 2, 2023
e31152e
Add kafka gssapi credentials as well
sashayakovtseva Aug 2, 2023
d69680d
Revert removing passwords from logs
sashayakovtseva Aug 3, 2023
ca3f6c7
Merge pull request #180 from viru-tech/env-credentials
yuzhichang Aug 4, 2023
3101c6c
update MaxIdleConns to maxOpenConns
momingkotoba Jun 15, 2023
28c3fcd
caculate lag failure of certain task should not block the entire reba…
momingkotoba Jun 15, 2023
6dba494
try to improve the ut coverage
momingkotoba Jun 19, 2023
72bed83
Update TestParserMap, sinker should assign all tasks properly when re…
momingkotoba Jul 18, 2023
24bbf4c
Separate tcp port test in a func
sashayakovtseva Aug 1, 2023
b14ebfd
Allow to specify http host to bound to
sashayakovtseva Aug 1, 2023
52d208e
log the batch offset, and the batch group Id
momingkotoba Aug 10, 2023
bfff89a
sinker should retry flush operation when seeing TOO_MANY_SIMULTANEOUS…
momingkotoba Aug 16, 2023
7ec6dd4
introduce task level config property fields
momingkotoba Aug 17, 2023
d6b4a10
feat: support http protocol
YenchangChan Nov 9, 2023
a2c89aa
feat: set connect params while protocol is http
YenchangChan Nov 10, 2023
e4dd60b
feat: reset kafka sasl domain_realm for some cloud service, like huaw…
YenchangChan Nov 27, 2023
9788be3
feat: if security and sasl configured both, use sasl config
YenchangChan Nov 29, 2023
f9102ad
fix: avoid panic when principal invalid
YenchangChan Nov 30, 2023
9f9cd3b
feat: http port start from 10000
YenchangChan Dec 1, 2023
d4f8137
chore: change makefile to generate executable process to bin/
YenchangChan Dec 1, 2023
07f3646
docs: update doucument
YenchangChan Dec 8, 2023
d2683fa
Bump golang.org/x/net from 0.9.0 to 0.17.0 (#181)
dependabot[bot] Dec 10, 2023
bbc8b5b
fix: typo (#183)
testwill Dec 10, 2023
e21fa86
feat: DynamicSchema add opt NotNullable
exfly Oct 25, 2023
5ba6308
ci/cd failed issue (#187)
YenchangChan Jan 2, 2024
a07826d
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#185)
dependabot[bot] Jan 2, 2024
afe8bd4
Updated documentation and packages (#186)
orginux Jan 2, 2024
f64cea3
fix: systest issue (#188)
YenchangChan Jan 4, 2024
d2a2d6c
feat: add __ with __series_id and __mgmt_id
Oct 31, 2023
8e756c2
feat: support live probe for k8s
Dec 18, 2023
d41609c
Bump golang.org/x/net from 0.9.0 to 0.17.0 (#181)
dependabot[bot] Dec 10, 2023
38a4370
fix: get __series_id__ and __mgmt_id__ column name from table
YenchangChan Jan 18, 2024
09b6a3e
make systest issue
YenchangChan Jan 19, 2024
4d569a4
chore: docker image package
YenchangChan Jan 23, 2024
5e51766
more debug logs and fixed bufLength incorrect
YenchangChan Feb 28, 2024
c9c364d
perf: add kafka properties
YenchangChan Feb 29, 2024
e1c8424
more debug message
YenchangChan Feb 29, 2024
98b0a66
add trace log to monitor perfermance
YenchangChan Mar 1, 2024
d745737
only check dist table but not logic table
YenchangChan Mar 4, 2024
3121b22
use lz4 compression in clickhouse client
YenchangChan Mar 4, 2024
d9ab557
feat: add record pool size to avoid using too much memory
YenchangChan Mar 4, 2024
9f6ff7c
bump clickhouse-go to 2.21.0 (#191)
YenchangChan Mar 11, 2024
ae35ab4
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#192)
dependabot[bot] Mar 14, 2024
63d97f4
fix: logic table not sync schema
YenchangChan Mar 20, 2024
fd3c332
fix: set alter_sync = 0 when add columns on cluster
YenchangChan Apr 2, 2024
aca7950
perf: http-port conflicts when more than 1 instance running on a machine
YenchangChan Apr 17, 2024
d379713
change maxport from maxInt to 65535
YenchangChan Apr 17, 2024
0c42c38
fix: rebalance issue
YenchangChan May 6, 2024
b6a1d53
Bump golang.org/x/net from 0.22.0 to 0.23.0 (#194)
dependabot[bot] May 20, 2024
474034e
perf: log caller
YenchangChan May 21, 2024
90b0b92
feat: If http-port is not specified, the http service is disabled to …
YenchangChan May 23, 2024
7da534a
fix: clickhoue not support alter_sync before v23.3
YenchangChan May 24, 2024
756c312
feat: support UPv4/IPv6 data types
YenchangChan May 21, 2024
bff611b
feat: random idx of replicas when init cluster connection
YenchangChan Jun 7, 2024
016f803
feat: do not restart consumer when foundNewKeys to avoid rebalance
YenchangChan Jun 11, 2024
ab7f90b
feat: encrypt password
YenchangChan Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: gh-pages

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "15.x"
- run: "[[ -z $(git show HEAD -- docs) ]] || npm install"
- run: "[[ -z $(git show HEAD -- docs) ]] || npm run docs:build"
- run: "[[ -z $(git show HEAD -- docs) ]] || dev/deploy_gh_pages.sh"
env:
TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }}
39 changes: 28 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,45 @@
name: golangci-lint
# https://github.com/golangci/golangci-lint-action
name: lint
on:
push:
tags:
- v*
tags: [ v* ]
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
golangci:
name: lint
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.32.2
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.51.2

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: --issues-exit-code=0 --disable=nakedret,exhaustivestruct,wrapcheck
# args: --issues-exit-code=0
args: --timeout=3m

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# only-new-issues: true

# Optional: if set to true then the all caching functionality will be complete disabled,
# takes precedence over all other caching options.
# skip-cache: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.13
go-version: '1.21'
id: go

- name: Check out code into the Go module directory
Expand All @@ -31,7 +31,7 @@ jobs:
run: make build

- name: unittest
run: make unittest
run: make gotest

- name: benchtest
run: make benchtest
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
tmp
sh
.vscode
node_modules/
package-lock.json
nacos_cache
.DS_Store
*.log
.idea
*.bin
.goreleaser.yml
*.out
*.pem
*.p12
dist
vendor
bin/

70 changes: 0 additions & 70 deletions .golangci.yml

This file was deleted.

17 changes: 6 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,21 @@ builds:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
main: cmd/clickhouse_sinker/main.go
binary: clickhouse_sinker
- id: nacos_publish_config
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
main: cmd/nacos_publish_config/main.go
binary: nacos_publish_config
dockers:
-
binaries:
- clickhouse_sinker
- nacos_publish_config
goos: linux
goarch: amd64
dockerfile: Dockerfile_goreleaser
image_templates:
- quay.io/housepower/clickhouse_sinker:latest
- quay.io/housepower/clickhouse_sinker:{{ .Tag }}
archives:
- replacements:
darwin: Darwin
Expand Down
145 changes: 145 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Changelog

#### Version 3.0.8 (2023-08-xx)

Improvements:

- "too many simultaneous queries" from ClickHouse will no longer be a fatal error, instead sinker will keep retrying untill complete the write operation
- Output the offset range per batch

New Features:

- Introduced a task level configuration property "field", which accepts a valid json string and allows additional
fields to be appened to each input message.

#### Version 3.0.7 (2023-07-19)

Improvements:

- when run sinker in cluster mode, caculate lag failure of certain task should not block the entire rebalance work. Instead, the current task should not be assigned to any running sinker instance.
- sinker will not crash when handling incompatible map type.

#### Version 3.0.6 (2023-05-19)

Improvements:

- When idenfying new columns, also update the schema of tables that are part of a logical cluster
- Allow writing non-numeric type metric

#### Version 3.0.5 (2023-05-12)

New Features:

- Introduced two new configuration properties to Sinker:
- "ReloadSeriesMapInterval", allows you to manage how frequently the cached seriesMap is reloaded.
- "ActiveSeriesRange", allows you to manage the amount of cached information.
Refer to the "config.md" file for more info.
- Add a new http endpoint "/debug/vars" for viewing contents of seriesMap

Deprecations:

- DialTimeout option is deprecated.

#### Version 3.0.4 (2023-04-18)

Improvements:

- Automatically end sinker if it remains inactive in last 10 mins

#### Version 3.0.3 (2023-03-30)

Improvements:

- Have writingpool per shard to avoid ErrAcquireConnTimeout
- Do not create kafka client everytime when caculate lags
- Support configuring PlainloginModule in kafka.security section

Bug Fixes:

- Avoid program running into stuck when facing fatalpanic

#### Version 3.0.2 (2023-03-13)

Improvements:

- update sinker grafana dashboard
- combine nacos log into sinker log
- update dmseries map when applying new config, reload the records from series table every single day
- avoid recreating dist tables, alter the table schema instead
- update clickhouse_sinker_consume_lags metric every 10 secs

#### Version 3.0.1 (2023-03-03)

Bug Fixes:

- Fix nacos publish config error "BUG: got different config"
- Fix changing "TimeUnit" config property does not trigger config reload
- Fix illegal "TimeZone" value result in sinker crash
- Fix wrong parsing result of Decimal type [909](https://github.com/ClickHouse/clickhouse-go/pull/909)

Improvements:

- Metrics from GoCollector and ProcessCollector are now being pushed to metric-push-gateway-addrs
- Terminate program immediately when receiving one more exit signal
- Limit the fetch size and poll size based on the BufferSize config property

#### Version 3.0.0 (2023-02-07)

New Features:

- Add support of ingesting multi-value metrics, the metric table will be expanded accordingly
- Allow specifying the series table name
- Allow customization of DatabaseName in task level

Improvements:

- Group the tasks by consumerGroup property to reduce number of kafka client, see design.md for details

Deprecation:

- Kafka-go and Sarama are no longer internal options for sinker
-

#### Version 2.6.9 (2023-02-07)

Improvements:

- Ignore SIGHUP signal, so that fire up sinker with nohup could work correctly
- Stop retrying when facing offsets commit error, leave it to the future commitment to sync the offsets
- Offsets commit error should not result in a process abort

#### Version 2.6.8 (2022-12-10)

New Features:

- Add clickhouse Map type support
- Small updates to allow TLS connections for AWS MSK, etc.
([169](https://github.com/housepower/clickhouse_sinker/pull/169))

Bug Fixes:

- Fix ClickHouse.Init goroutine leak

#### Version 2.6.7 (2022-12-07)

Improvements:

- Add new sinker metrics to show the wrSeriesQuota status
- Always allow writing new series to avoid data mismatch between series and metrics table

#### Version 2.6.6 (2022-12-05)

Bug Fixes:

- reset wrSeries timely to avoid failure of writing metric data to clickhouse

#### Version 2.6.5 (2022-11-30)

Bug Fixes:

- Fix the 'segmentation violation' in ch-go package
- Fix the create table error 'table already exists' when trying to create a distribution table

#### Previous releases

See https://github.com/housepower/clickhouse_sinker/releases
Loading