diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-11-07 21:50:50 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-11-07 22:21:46 +0300 |
commit | d2ac401fb27d2777c86e879d52ff86beaaa7aa1b (patch) | |
tree | d8f3832398e2e0baf46679390e9656fbc948e079 | |
parent | 111e8ac04cf0d6593952ecb3cd74bc73cf4d19f8 (diff) | |
download | ydb-d2ac401fb27d2777c86e879d52ff86beaaa7aa1b.tar.gz |
Change "config.yaml"
-rw-r--r-- | ydb/library/schlab/mon/static/js/schviz-test0.js | 26 | ||||
-rw-r--r-- | ydb/library/schlab/mon/static/schviz0.html | 258 | ||||
-rw-r--r-- | ydb/library/schlab/mon/static/schviz1.html | 21 | ||||
-rw-r--r-- | ydb/public/api/README.md | 5 | ||||
-rw-r--r-- | ydb/public/api/client/yc_public/README.md | 3 |
5 files changed, 313 insertions, 0 deletions
diff --git a/ydb/library/schlab/mon/static/js/schviz-test0.js b/ydb/library/schlab/mon/static/js/schviz-test0.js new file mode 100644 index 0000000000..43ebb738f6 --- /dev/null +++ b/ydb/library/schlab/mon/static/js/schviz-test0.js @@ -0,0 +1,26 @@ +d3.json("schviz-test0.json", function(hist) { + var linesCount = 100; + var lineHeight = 50; + for (var i = 4; i < linesCount; i++) { + hist[0].cbs.push({ + "idx": i, + "name": "vdisk" + i, + "max_budget": 250000000, + "period": 1000000000, + "cur_budget": 250000000, + "deadline": Math.random()*1000000000, + "state": "ACTIVE", + "req": [{ + "id": 1, + "cost": 125000000, + "state": "RUNNING", + "seqno": 1 + }] + }); + } + + var schviz = d3.schviz().height(lineHeight*linesCount).width(800); + + schviz.timeDomain([0, 1000]); + schviz(hist); +}); diff --git a/ydb/library/schlab/mon/static/schviz0.html b/ydb/library/schlab/mon/static/schviz0.html new file mode 100644 index 0000000000..656b57f57e --- /dev/null +++ b/ydb/library/schlab/mon/static/schviz0.html @@ -0,0 +1,258 @@ +<!DOCTYPE html> +<html> +<head> + <title>SchViz</title> + <link type="text/css" href="css/schviz.css" rel="stylesheet" /> +</head> +<body> +</body> +</html> + +<script type="text/javascript" src="js/d3.v4.min.js"></script> +<script type="text/javascript" src="js/d3-tip-0.8.0-alpha.1.js"></script> +<script type="text/javascript" src="js/schviz.js"></script> +<script type="text/javascript"> + var hist = [{ + "ts": 0, + "keyframe": true, + "epochtime": 1500390747, + "cbs": [{ + "idx": 0, + "name": "vdisk0", + "max_budget": 250000000, + "period": 1000000000, + "cur_budget": 250000000, + "deadline": 1000000000, + "state": "RUNNING", + "req": [{ + "id": 1, + "cost": 125000000, + "state": "RUNNING", + "seqno": 1 + }] + },{ + "idx": 1, + "name": "vdisk1", + "max_budget": 250000000, + "period": 1000000000, + "cur_budget": 250000000, + "deadline": 1000000000, + "state": "ACTIVE", + "req": [{ + "id": 2, + "cost": 150000000, + "state": "PENDING", + "kind": "WRITE", + "seqno": 1 + },{ + "id": 3, + "cost": 200000000, + "state": "PENDING", + "kind": "WRITE", + "seqno": 2 + },{ + "id": 4, + "cost": 300000000, + "state": "PENDING", + "kind": "WRITE", + "seqno": 3 + }] + },{ + "idx": 2, + "name": "vdisk2", + "max_budget": 250000000, + "period": 1000000000, + "cur_budget": 250000000, + "deadline": 1000000000, + "state": "ACTIVE", + "req": [{ + "id": 5, + "cost": 100000000, + "state": "PENDING", + "kind": "READ", + "seqno": 1 + },{ + "id": 6, + "cost": 100000000, + "state": "PENDING", + "kind": "READ", + "seqno": 2 + },{ + "id": 7, + "cost": 80000000, + "state": "PENDING", + "kind": "READ", + "seqno": 3 + }] + },{ + "idx": 3, + "name": "vdisk3", + "max_budget": 250000000, + "period": 1000000000, + "cur_budget": 250000000, + "deadline": 1000000000, + "state": "ACTIVE", + "req": [{ + "id": 8, + "cost": 20000000, + "state": "PENDING", + "kind": "READ", + "seqno": 1 + },{ + "id": 9, + "cost": 20000000, + "state": "PENDING", + "kind": "READ", + "seqno": 2 + },{ + "id": 10, + "cost": 20000000, + "state": "PENDING", + "kind": "READ", + "seqno": 3 + }] + }], + "hgrub": { + "uact": 1.0 + } + },{ + "ts": 150000000, + "cbs": [{ + "idx": 0, + "cur_budget": 0, + "state": "IDLE", + "req": [ { "id": 1, "state": "DONE" } ] + }] + },{ + "ts": 250000000, + "cbs": [{ + "idx": 1, + "state": "RUNNING", + "req": [ { "id": 2, "state": "RUNNING" } ] + }] + },{ + "ts": 350000000, + "cbs": [{ + "idx": 1, + "cur_budget": 150000000, + "req": [ { "id": 2, "state": "DONE"}, { "id": 3, "state": "RUNNING"} ] + }] + },{ + "ts": 450000000, + "cbs": [{ + "idx": 1, + "cur_budget": 50000000, + "req": [ { "id": 3, "state": "DONE" }, { "id": 4, "state": "RUNNING"} ] + }] + },{ + "ts": 500000000, + "cbs": [{ + "idx": 1, + "cur_budget": 0, + "state": "DEPLETED", + "req": [ { "id": 4, "cost": 50000000, "state": "PENDING" } ] + },{ + "idx": 2, + "state": "RUNNING", + "req": [ { "id": 5, "state": "RUNNING" } ] + }] + },{ + "ts": 600000000, + "cbs": [{ + "idx": 2, + "cur_budget": 150000000, + "req": [ { "id": 5, "state": "DONE" }, { "id": 6, "state": "RUNNING"} ] + }] + },{ + "ts": 700000000, + "cbs": [{ + "idx": 2, + "cur_budget": 50000000, + "req": [ { "id": 6, "state": "DONE" }, { "id": 7, "state": "RUNNING"} ] + }] + },{ + "ts": 750000000, + "cbs": [{ + "idx": 2, + "cur_budget": 0, + "state": "DEPLETED", + "req": [ { "id": 7, "cost": 60000000, "state": "PENDING" } ] + },{ + "idx": 3, + "state": "RUNNING", + "req": [ { "id": 8, "state": "RUNNING" } ] + }] + },{ + "ts": 770000000, + "cbs": [{ + "idx": 3, + "cur_budget": 230000000, + "req": [ { "id": 8, "state": "DONE" }, { "id": 9, "state": "RUNNING"} ] + }] + },{ + "ts": 790000000, + "cbs": [{ + "idx": 3, + "cur_budget": 210000000, + "req": [ { "id": 9, "state": "DONE" }, { "id": 10, "state": "RUNNING"} ] + }] + },{ + "ts": 810000000, + "cbs": [{ + "idx": 1, + "req": [ { "id": 4, "state": "RUNNING" } ] + },{ + "idx": 3, + "cur_budget": 190000000, + "req": [ { "id": 10, "state": "DONE" } ] + }] + },{ + "ts": 860000000, + "cbs": [{ + "idx": 1, + "state": "IDLE", + "req": [ { "id": 4, "state": "DONE" } ] + },{ + "idx": 2, + "req": [ { "id": 7, "state": "RUNNING" } ] + },{ + "idx": 3, + "cur_budget": 140000000 + }] + },{ + "ts": 910000000, + "cbs": [{ + "idx": 2, + "state": "IDLE", + "req": [ { "id": 7, "state": "DONE" } ] + },{ + "idx": 3, + "cur_budget": 90000000, + "state": "IDLE" + }] + }]; + + var linesCount = 15; + for (var i = 4; i < linesCount; i++) { + hist[0].cbs.push({ + "idx": i, + "name": "vdisk" + i, + "max_budget": 250000000, + "period": 1000000000, + "cur_budget": 250000000, + "deadline": Math.random()*1000000000, + "state": "ACTIVE", + "req": [{ + "id": 1, + "cost": 125000000, + "state": "RUNNING", + "seqno": 1 + }] + }); + } + + var schviz = d3.schviz().height(600).width(800); + + schviz.timeDomain([0, 1000]); + schviz(hist); +</script> diff --git a/ydb/library/schlab/mon/static/schviz1.html b/ydb/library/schlab/mon/static/schviz1.html new file mode 100644 index 0000000000..3d7d6c8d96 --- /dev/null +++ b/ydb/library/schlab/mon/static/schviz1.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> + <title>SchViz</title> + <link type="text/css" href="css/schviz.css" rel="stylesheet" /> +</head> +<body> +</body> +</html> + +<script type="text/javascript" src="js/d3.v4.min.js"></script> +<script type="text/javascript" src="js/d3-tip-0.8.0-alpha.1.js"></script> +<script type="text/javascript" src="js/schviz.js"></script> +<script type="text/javascript"> + var dataUrl = "http://kikimr0031.search.yandex.net:8765/actors/pdisks/pdisk000000001?mode=getschedule"; + d3.json(dataUrl, function(data) { + var schviz = d3.schviz(); + schviz.timeDomain([0, 1000]); + schviz(data); + }); +</script> diff --git a/ydb/public/api/README.md b/ydb/public/api/README.md new file mode 100644 index 0000000000..c6a9a1dd13 --- /dev/null +++ b/ydb/public/api/README.md @@ -0,0 +1,5 @@ +Proto's in this directory defines public YDB server API. + +This is original proto's for public repository https://github.com/ydb-platform/ydb-api-protos. This proto's syncs to https://github.com/ydb-platform/ydb-api-protos repository **manually**. Manually sync meens not only copy. Some options like `go_package` must be adds to proto's in https://github.com/ydb-platform/ydb-api-protos repository also. + +Everyone may be create pull request to https://github.com/ydb-platform/ydb-api-protos with latest changes from this directory. diff --git a/ydb/public/api/client/yc_public/README.md b/ydb/public/api/client/yc_public/README.md new file mode 100644 index 0000000000..f8acff5b1d --- /dev/null +++ b/ydb/public/api/client/yc_public/README.md @@ -0,0 +1,3 @@ +This directory contains copy of ycloud public protobuf in use by YDB from https://github.com/yandex-cloud/cloudapi/tree/master/yandex/cloud. + +Import paths are fixed to contain all required files in a single directory. |