-
Notifications
You must be signed in to change notification settings - Fork 726
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
Support PD with Dashboard #2086
Conversation
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI Failed.
Logs
[2020-01-08T03:57:47.821Z] ==================
[2020-01-08T03:57:47.821Z] WARNING: DATA RACE
[2020-01-08T03:57:47.821Z] Write at 0x000003ea8a60 by goroutine 180:
[2020-01-08T03:57:47.821Z] github.com/pingcap-incubator/tidb-dashboard/pkg/apiserver.Handler()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/mode.go:57 +0x7e
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server.CreateServer()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/server.go:216 +0xed2
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server/api.mustNewCluster.func1()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:86 +0x1d8
[2020-01-08T03:57:47.821Z]
[2020-01-08T03:57:47.821Z] Previous write at 0x000003ea8a60 by goroutine 181:
[2020-01-08T03:57:47.821Z] github.com/pingcap-incubator/tidb-dashboard/pkg/apiserver.Handler()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/mode.go:57 +0x7e
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server.CreateServer()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/server.go:216 +0xed2
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server/api.mustNewCluster.func1()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:86 +0x1d8
[2020-01-08T03:57:47.821Z]
[2020-01-08T03:57:47.821Z] Goroutine 180 (running) created at:
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server/api.mustNewCluster()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:77 +0x1d8
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server/api.(*testDiagnoseAPISuite).TestDiagnoseSlice()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/diagnose_test.go:40 +0x6d
[2020-01-08T03:57:47.821Z] runtime.call32()
[2020-01-08T03:57:47.821Z] /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
[2020-01-08T03:57:47.821Z] reflect.Value.Call()
[2020-01-08T03:57:47.821Z] /usr/local/go/src/reflect/value.go:321 +0xd3
[2020-01-08T03:57:47.821Z] github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:836 +0x9aa
[2020-01-08T03:57:47.821Z] github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:730 +0xc4
[2020-01-08T03:57:47.821Z]
[2020-01-08T03:57:47.821Z] Goroutine 181 (running) created at:
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server/api.mustNewCluster()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:77 +0x1d8
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server/api.(*testDiagnoseAPISuite).TestDiagnoseSlice()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/diagnose_test.go:40 +0x6d
[2020-01-08T03:57:47.821Z] runtime.call32()
[2020-01-08T03:57:47.821Z] /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
[2020-01-08T03:57:47.821Z] reflect.Value.Call()
[2020-01-08T03:57:47.821Z] /usr/local/go/src/reflect/value.go:321 +0xd3
[2020-01-08T03:57:47.821Z] github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:836 +0x9aa
[2020-01-08T03:57:47.821Z] github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:730 +0xc4
[2020-01-08T03:57:47.821Z] ==================
[2020-01-08T03:57:47.821Z] [2020/01/08 11:56:23.715 +08:00] [INFO] [etcd.go:117] ["configuring peer listeners"] [listen-peer-urls="[http://127.0.0.1:13552]"]
[2020-01-08T03:57:47.821Z] ==================
[2020-01-08T03:57:47.821Z] WARNING: DATA RACE
[2020-01-08T03:57:47.821Z] Write at 0x00000348d150 by goroutine 180:
[2020-01-08T03:57:47.821Z] github.com/pingcap-incubator/tidb-dashboard/pkg/apiserver.Handler()
[2020-01-08T03:57:47.821Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/mode.go:66 +0x99
[2020-01-08T03:57:47.821Z] [2020/01/08 11:56:23.715 +08:00] [INFO] [systime_mon.go:26] ["start system time monitor"]
[2020-01-08T03:57:47.821Z] github.com/pingcap/pd/server.CreateServer()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/server.go:216 +0xed2
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server/api.mustNewCluster.func1()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:86 +0x1d8
[2020-01-08T03:57:47.822Z]
[2020-01-08T03:57:47.822Z] Previous write at 0x00000348d150 by goroutine 181:
[2020-01-08T03:57:47.822Z] github.com/pingcap-incubator/tidb-dashboard/pkg/apiserver.Handler()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/gin-gonic/gin@v1.5.0/mode.go:66 +0x99
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server.CreateServer()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/server.go:216 +0xed2
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server/api.mustNewCluster.func1()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:86 +0x1d8
[2020-01-08T03:57:47.822Z]
[2020-01-08T03:57:47.822Z] Goroutine 180 (running) created at:
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server/api.mustNewCluster()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:77 +0x1d8
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server/api.(*testDiagnoseAPISuite).TestDiagnoseSlice()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/diagnose_test.go:40 +0x6d
[2020-01-08T03:57:47.822Z] runtime.call32()
[2020-01-08T03:57:47.822Z] /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
[2020-01-08T03:57:47.822Z] reflect.Value.Call()
[2020-01-08T03:57:47.822Z] /usr/local/go/src/reflect/value.go:321 +0xd3
[2020-01-08T03:57:47.822Z] github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:836 +0x9aa
[2020-01-08T03:57:47.822Z] github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:730 +0xc4
[2020-01-08T03:57:47.822Z]
[2020-01-08T03:57:47.822Z] Goroutine 181 (running) created at:
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server/api.mustNewCluster()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/server_test.go:77 +0x1d8
[2020-01-08T03:57:47.822Z] github.com/pingcap/pd/server/api.(*testDiagnoseAPISuite).TestDiagnoseSlice()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/src/github.com/pingcap/pd/server/api/diagnose_test.go:40 +0x6d
[2020-01-08T03:57:47.822Z] runtime.call32()
[2020-01-08T03:57:47.822Z] /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a
[2020-01-08T03:57:47.822Z] reflect.Value.Call()
[2020-01-08T03:57:47.822Z] /usr/local/go/src/reflect/value.go:321 +0xd3
[2020-01-08T03:57:47.822Z] github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:836 +0x9aa
[2020-01-08T03:57:47.822Z] github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2020-01-08T03:57:47.822Z] /home/jenkins/agent/workspace/pd_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20191107115940-caf2b9e6ccf4/check.go:730 +0xc4
[2020-01-08T03:57:47.822Z] ==================
so now we don't have PD_WEB, right? |
@siddontang In this PR, PD Web is still kept in pd. After we migrated all features from PD Web to Dashboard (especially KeyVis), maybe PD Web can be removed. |
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
Codecov Report
@@ Coverage Diff @@
## master #2086 +/- ##
=========================================
Coverage ? 77.16%
=========================================
Files ? 194
Lines ? 19572
Branches ? 0
=========================================
Hits ? 15103
Misses ? 3346
Partials ? 1123
Continue to review full report at Codecov.
|
Co-Authored-By: 混沌DM <hundundm@gmail.com>
Signed-off-by: Breezewish <me@breeswish.org>
Signed-off-by: Breezewish <me@breeswish.org>
@HunDunDM Hi, I tried to move the generated Go source code into a standalone package to minimize the scope to skip in CI today, and found that due to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/merge |
/run-all-tests |
What problem does this PR solve?
This PR integrates dashboard into PD.
What is changed and how it works?
Dashboard is integrated using go module. Since no extra dependencies is needed, Dashboard UI and Dashboard API is built into PD by default without any extra configurations:
After build, you must specify
--enable-dashboard
to start a PD server with Dashboard UI and Dashboard API:The dashboard can be accessed via http://127.0.0.1:2379/dashboard.
Notice that unlike PD, each dashboard instance is independent, which does not know each other and keeps independent and inconsistent local data.
Check List