Skip to content

Implement Proxy's own status_server#141

Merged
CalvinNeo merged 3 commits intopingcap:raftstore-proxy-6.2from
CalvinNeo:move-status-server-out
Aug 17, 2022
Merged

Implement Proxy's own status_server#141
CalvinNeo merged 3 commits intopingcap:raftstore-proxy-6.2from
CalvinNeo:move-status-server-out

Conversation

@CalvinNeo
Copy link
Member

@CalvinNeo CalvinNeo commented Aug 15, 2022

Signed-off-by: CalvinNeo calvinneo1995@gmail.com

What problem does this PR solve?

Issue Number: ref pingcap/tiflash#5170

Problem Summary:

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@CalvinNeo
Copy link
Member Author

need merge tikv#13234 for compat

f
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
@CalvinNeo CalvinNeo force-pushed the move-status-server-out branch from f0e8a50 to f569a1e Compare August 15, 2022 12:51
@CalvinNeo CalvinNeo requested a review from breezewish August 15, 2022 14:29
f
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
@CalvinNeo
Copy link
Member Author

CalvinNeo commented Aug 17, 2022

Manual test

calvin@CalvinPC ~ % curl 127.0.0.1:20292/tiflash/sync-status/1
0

calvin@CalvinPC ~ % curl 127.0.0.1:20292/config
{"raftstore-proxy":{"log-level":"info","log-file":"","log-format":"text","log-rotation-timespan":"0s","log-rotation-size":"300MiB","slow-log-file":"","slow-log-threshold":"1s","abort-on-panic":false,"memory-usage-limit":2135599786,"memory-usage-high-water":0.9,"log":{"level":"info","format":"text","enable-timestamp":true,"file":{"filename":"/Users/calvin/.tiup/data/a/tiflash-0/log/tiflash_tikv.log","max-size":300,"max-days":0,"max-backups":0}},"quota":{"foreground-cpu-time":0,"foreground-write-bandwidth":"0KiB","foreground-read-bandwidth":"0KiB","max-delay-duration":"500ms"},"readpool":{"unified":{"min-thread-count":1,"max-thread-count":4,"stack-size":"10MiB","max-tasks-per-worker":2000},"storage":{"use-unified-pool":true,"high-concurrency":4,"normal-concurrency":4,"low-concurrency":4,"max-tasks-per-worker-high":2000,"max-tasks-per-worker-normal":2000,"max-tasks-per-worker-low":2000,"stack-size":"10MiB"},"coprocessor":{"use-unified-pool":true,"high-concurrency":6,"normal-concurrency":6,"low-concurrency":6,"max-tasks-per-worker-high":2000,"max-tasks-per-worker-normal":2000,"max-tasks-per-worker-low":2000,"stack-size":"10MiB"}},"server":{"addr":"0.0.0.0:20170","advertise-addr":"127.0.0.1:20170","status-addr":"0.0.0.0:20292","advertise-status-addr":"127.0.0.1:20292","status-thread-pool-size":1,"max-grpc-send-msg-len":10485760,"raft-client-grpc-send-msg-buffer":524288,"raft-client-queue-size":8192,"raft-msg-max-batch-size":128,"grpc-compressi ...

calvin@CalvinPC ~ % curl 127.0.0.1:20292/debug/pprof/profile
<?xml version="1.0" standalone="no"?> ...

[2022/08/17 20:51:06.952 +08:00] [INFO] [status_server.rs:150] ["Proxy's Status server started"]

@CalvinNeo CalvinNeo merged commit d21b9e8 into pingcap:raftstore-proxy-6.2 Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants