GithubHelp home page GithubHelp logo

isabella232 / tidb-vision Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pingcap/tidb-vision

0.0 0.0 0.0 4.93 MB

TiDB data visualization

JavaScript 82.70% CSS 0.19% HTML 0.15% Vue 16.96%

tidb-vision's Introduction

TiDB Vision

tidb-vision is a component that provides the visualization of PD scheduling through a standalone UI framework. It uses d3 (data-driven-document) as the bottom layer render library and uses the extended Circos as the basic layout engine to implement layouts such as stacks, circle sector, and chords. The transition effect between states is provided through d3 transition.

To do

  • doc for REGION_BYTE_SIZE setting
  • doc for new Caddy web server docker image

Development

Prerequisite

  • Depends on the latest version of the PD server. For details, see the related PR.

Install the dependencies

  • node v7+, npm
  • npm install

Note: If you need external access, modify the host configuration of devServer in webpack.config.js.

Start the component

  • Use the default mock server: export PD_ENDPOINT=localhost:9000;npm start
  • Use the external PD server: export PD_ENDPOINT=<PD_SERVER_IP>:<PORT>;npm start

On the dashboard interface, click the entry to view the TiKV data distribution (Regions, leader), TiKV store,Region heat (I/O Read and Write rates) and PD scheduling history (Region/leader transfer) of the current cluster.

Description of the ring chart:

  • The peripheral text provides the store's leader/Region change within each time window, such as +10 Regions, - 3 Leaders.
  • The peripheral histogram groups: the left (the ring direction) histogram in each group shows the flow type information of store Write and hot Region Write operations; the right histogram shows the flow type information of store Read and hot Region Read operations.
  • The length of the ring represents the entire storage space of a specific store, and the text shows the basic information, such as the store's host IP:port and ID.
  • The block stacks inside the ring show three types of information in terms of "disk storage": unused space blocks (light gray), ordinary Region blocks (dark gray), and blocks as leader (green).
  • The chord arcs inside the ring show the Region and leader transfer information between stores.

Note: Depending on the current cluster status, which includes the number of TiKV instances and TiKV storage usage and so on, the component condition such as the Write and Read "heat" might be different.

tidb-vision's People

Contributors

caitinchen avatar forksiva avatar lilin90 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.