分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 lines
17 KiB

webpackJsonp([31],{1152:function(t,e,s){"use strict";e.__esModule=!0;var a=s(123),n=c(s(889)),i=c(s(701)),r=c(s(696)),o=c(s(230)),l=c(s(697));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"servers-mysql",data:function(){return{isLoading:!1,mysqlList:[],color:o.default.color}},props:{},methods:Object.assign({},(0,a.mapActions)("monitor",["getDatabaseData"])),watch:{},created:function(){var t=this;this.isLoading=!0,this.getDatabaseData().then(function(e){t.mysqlList=e,t.isLoading=!1}).catch(function(){t.isLoading=!1})},mounted:function(){},components:{mList:n.default,mListConstruction:l.default,mSpin:i.default,mNoData:r.default}}},1307:function(t,e,s){var a=s(1308);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("699d7afa",a,!0,{})},1308:function(t,e,s){(t.exports=s(34)(!1)).push([t.i,".servers-wrapper{padding:16px}.servers-wrapper .gauge-model{width:100%;height:360px;overflow:hidden;margin:0 auto}.servers-wrapper .gauge-model .gauge-echart{width:350px;margin:auto;margin-bottom:-80px}.servers-wrapper .gauge-model .text-1{width:100%;margin:0 auto;font-size:32px;text-align:center}.servers-wrapper .text-num-model.text{width:100%;height:380px;overflow:hidden;border:1px solid #e8e8e8;margin:0 auto;margin-bottom:16px}.servers-wrapper .text-num-model.text>.title{height:36px;line-height:36px;background:#f9f9f9;border-bottom:1px solid #e8e8e8;padding-left:10px}.servers-wrapper .text-num-model.text>.title span{width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.servers-wrapper .text-num-model .value-p{height:276px;line-height:276px;text-align:center}.servers-wrapper .text-num-model .value-p>b{font-size:100px;color:#333}.servers-wrapper .text-num-model .text-1{width:100%;margin:0 auto;font-size:32px;text-align:center}.servers-wrapper.mysql-model .text-num-model{height:250px}.servers-wrapper.mysql-model .text-num-model .text-1{font-size:18px}.servers-wrapper.mysql-model .text-num-model .value-p{height:150px;line-height:150px}.servers-wrapper.mysql-model .text-num-model .value-p>b{font-size:72px}.servers-wrapper.mysql-model .text-num-model .value-p>.state>i{font-size:50px}.servers-wrapper.mysql-model .text-num-model .value-p>.state .success{color:#3c0}.servers-wrapper.mysql-model .text-num-model .value-p>.state .error{color:red}.servers-wrapper .row-box{width:100%;height:380px;overflow:hidden;border:1px solid #e8e8e8;margin:0 auto;margin-bottom:16px}.servers-wrapper .row-box .row-title{height:36px;line-height:36px;background:#f9f9f9;border-bottom:1px solid #e8e8e8;position:relative}.servers-wrapper .row-box .row-title span{font-size:12px;color:#444}.servers-wrapper .row-box .row-title span.sp{margin-right:10px}.servers-wrapper .row-box .row-title .left{position:absolute;left:10px;top:0}.servers-wrapper .row-box .row-title .right{position:absolute;right:10px;top:0}",""])},1309:function(t,e,s){"use strict";var a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("m-list-construction",{attrs:{title:"Mysql "+t.$t("Manage")}},[s("template",{slot:"content"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.mysqlList.length,expression:"mysqlList.length"}],staticClass:"servers-wrapper mysql-model"},t._l(t.mysqlList,function(e,a){return s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-2"},[s("div",{staticClass:"text-num-model text"},[s("div",{staticClass:"title"},[s("span",{attrs:{title:t.$t("Health status")}},[t._v(t._s(t.$t("Health status")))])]),t._v(" "),s("div",{staticClass:"value-p"},[s("span",{staticClass:"state"},[e.state?s("i",{staticClass:"iconfont success"},[t._v("")]):s("i",{staticClass:"iconfont error"},[t._v("")])])]),t._v(" "),s("div",{staticClass:"text-1"},[t._v("\n "+t._s(t.$t("Health status"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"col-md-3"},[s("div",{staticClass:"text-num-model text"},[s("div",{staticClass:"title"},[s("span",{attrs:{title:t.$t("Max connections")}},[t._v(t._s(t.$t("Max connections"))+" - "+t._s(t._f("formatDate")(e.date)))])]),t._v(" "),s("div",{staticClass:"value-p"},[s("b",{style:{color:t.color[0]}},[t._v(t._s(e.maxConnections))])]),t._v(" "),s("div",{staticClass:"text-1"},[t._v("\n "+t._s(t.$t("Max connections"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"col-md-3"},[s("div",{staticClass:"text-num-model text"},[s("div",{staticClass:"title"},[s("span",{attrs:{title:t.$t("Threads connections")}},[t._v(t._s(t.$t("Threads connections")))])]),t._v(" "),s("div",{staticClass:"value-p"},[s("b",{style:{color:t.color[8]}},[t._v(t._s(e.threadsConnections))])]),t._v(" "),s("div",{staticClass:"text-1"},[t._v("\n "+t._s(t.$t("Threads connections"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"col-md-2"},[s("div",{staticClass:"text-num-model text"},[s("div",{staticClass:"title"},[s("span",{attrs:{title:t.$t("Max used connections")}},[t._v(t._s(t.$t("Max used connections")))])]),t._v(" "),s("div",{staticClass:"value-p"},[s("b",{style:{color:t.color[2]}},[t._v(t._s(e.maxUsedConnections))])]),t._v(" "),s("div",{staticClass:"text-1"},[t._v("\n "+t._s(t.$t("Max used connections"))+"\n ")])])]),t._v(" "),s("div",{staticClass:"col-md-2"},[s("div",{staticClass:"text-num-model text"},[s("div",{staticClass:"title"},[s("span",{attrs:{title:t.$t("Threads running connections")}},[t._v(t._s(t.$t("Threads running connections")))])]),t._v(" "),s("div",{staticClass:"value-p"},[s("b",{style:{color:t.color[4]}},[t._v(t._s(e.threadsRunningConnections))])]),t._v(" "),s("div",{staticClass:"text-1"},[t._v("\n "+t._s(t.$t("Threads running connections"))+"\n ")])])])])}),0),t._v(" "),t.mysqlList.length?t._e():s("div",[s("m-no-data")],1),t._v(" "),s("m-spin",{attrs:{"is-spin":t.isLoading}})],1)],2)},staticRenderFns:[]};e.a=a},653:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(1152),n=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var r=s(1309);var o=function(t){s(1307)},l=s(29)(n.a,r.a,!1,o,null,null);e.default=l.exports},663:function(t,e,s){"use strict";e.__esModule=!0,e.default={name:"list-construction",data:function(){return{}},props:{title:String}}},664:function(t,e,s){"use strict";e.__esModule=!0,e.default={name:"spin",data:function(){return{}},props:{isSpin:{type:Boolean,default:!0},isLeft:{type:Boolean,default:!0}}}},665:function(t,e,s){"use strict";e.__esModule=!0,e.default={name:"no-data",props:{msg:String,height:Number}}},696:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(665),n=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var r=s(709);var o=function(t){s(707)},l=s(29)(n.a,r.a,!1,o,null,null);e.default=l.exports},697:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(663),n=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var r=s(700);var o=function(t){s(698)},l=s(29)(n.a,r.a,!1,o,null,null);e.default=l.exports},698:function(t,e,s){var a=s(699);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("70439c42",a,!0,{})},699:function(t,e,s){(t.exports=s(34)(!1)).push([t.i,"",""])},700:function(t,e,s){"use strict";var a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"home-main list-construction-model"},[e("div",{staticClass:"content-title"},[e("span",[this._v(this._s(this.title))])]),this._v(" "),e("div",{staticClass:"conditions-box"},[this._t("conditions")],2),this._v(" "),e("div",{staticClass:"list-box"},[this._t("content")],2)])},staticRenderFns:[]};e.a=a},701:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(664),n=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var r=s(704);var o=function(t){s(702)},l=s(29)(n.a,r.a,!1,o,null,null);e.default=l.exports},702:function(t,e,s){var a=s(703);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("058996ed",a,!0,{})},703:function(t,e,s){(t.exports=s(34)(!1)).push([t.i,"#spin-model{position:fixed;left:20px;top:80px;background:#fff;z-index:99;border-radius:3px}#spin-model .svg-box{width:100px;height:66px;position:absolute;left:50%;top:50%;margin-left:-50px;margin-top:-33px;text-align:center}#spin-model .svg-box .sp1{display:block;font-size:12px;color:#999;padding-top:4px}#spin-model.spin-sp1{width:calc(100% - 40px);height:calc(100% - 100px)}#spin-model.spin-sp2{width:calc(100% - 240px);height:calc(100% - 100px);left:220px}",""])},704:function(t,e,s){"use strict";var a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.isSpin?s("div",{class:t.isLeft?"spin-sp2":"spin-sp1",attrs:{id:"spin-model"}},[s("div",{staticClass:"svg-box"},[s("svg",{staticClass:"lds-gears",staticStyle:{background:"none"},attrs:{width:"54px",height:"54px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[s("g",{attrs:{transform:"translate(50 50)"}},[s("g",{attrs:{transform:"translate(-19 -19) scale(0.6)"}},[s("g",{attrs:{transform:"rotate(107.866)"}},[s("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}}),s("path",{attrs:{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#0097e0"}})],1)]),t._v(" "),s("g",{attrs:{transform:"translate(19 19) scale(0.6)"}},[s("g",{attrs:{transform:"rotate(229.634)"}},[s("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360;0",keyTimes:"0;1",dur:"1s",begin:"-0.0625s",repeatCount:"indefinite"}}),s("path",{attrs:{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#7f8b95"}})],1)])])]),t._v(" "),s("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Loading...")))])])]):t._e()},staticRenderFns:[]};e.a=a},707:function(t,e,s){var a=s(708);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("5be25ccc",a,!0,{})},708:function(t,e,s){(t.exports=s(34)(!1)).push([t.i,".no-data-model{position:relative;width:100%;height:calc(100vh - 200px)}.no-data-model .no-data-box{width:210px;height:210px;position:absolute;left:50%;top:50%;margin-left:-105px;margin-top:-105px;text-align:center}.no-data-model .no-data-box .text{padding-top:10px;color:#666}",""])},709:function(t,e,s){"use strict";var a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"no-data-model",style:{height:this.height+"px"}},[e("div",{staticClass:"no-data-box"},[this._m(0),this._v(" "),e("div",{staticClass:"text"},[this._v(this._s(this.msg||this.$t("No data")))])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img"},[e("img",{attrs:{src:s(710),alt:""}})])}]};e.a=a},710:function(t,e,s){t.exports=s.p+"images/errorTip.png?a7b20f0ca8727f22f405c2a34d1363a0"},859:function(t,e,s){"use strict";e.__esModule=!0,e.default={name:"zookeeper-list",data:function(){return{list:[]}},props:{list:Array}}},889:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(859),n=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var r=s(892);var o=function(t){s(890)},l=s(29)(n.a,r.a,!1,o,null,null);e.default=l.exports},890:function(t,e,s){var a=s(891);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("2e3ee5de",a,!0,{})},891:function(t,e,s){(t.exports=s(34)(!1)).push([t.i,".zookeeper-list .state{text-align:center;display:block}.zookeeper-list .state>i{font-size:18px}.zookeeper-list .state .success{color:#3c0}.zookeeper-list .state .error{color:red}",""])},892:function(t,e,s){"use strict";var a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"list-model zookeeper-list"},[s("div",{staticClass:"table-box"},[s("table",[s("tr",[s("th",[s("span",[t._v(t._s(t.$t("#")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("host")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Number of connections")))])]),t._v(" "),s("th",[s("span",[t._v("watches "+t._s(t.$t("Number")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Sent")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Received")))])]),t._v(" "),t._m(0),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Min latency")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Avg latency")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Max latency")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Node count")))])]),t._v(" "),s("th",[s("span",[t._v(t._s(t.$t("Query time")))])]),t._v(" "),s("th",{staticStyle:{"text-align":"center"}},[s("span",[t._v(t._s(t.$t("Node self-test status")))])])]),t._v(" "),t._l(t.list,function(e,a){return s("tr",{key:a},[s("td",[s("span",[t._v(t._s(a+1))])]),t._v(" "),s("td",[s("span",[s("a",{staticClass:"links",attrs:{href:"javascript:"}},[t._v(t._s(e.hostname))])])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.connections))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.watches))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.sent))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.received))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.mode))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.minLatency))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.avgLatency))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.maxLatency))])]),t._v(" "),s("td",[s("span",[t._v(t._s(e.nodeCount))])]),t._v(" "),s("td",[s("span",[t._v(t._s(t._f("formatDate")(e.date)))])]),t._v(" "),s("td",[s("span",{staticClass:"state"},[e.state?s("i",{staticClass:"iconfont success"},[t._v("")]):s("i",{staticClass:"iconfont error"},[t._v("")])])])])})],2)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("span",[this._v("leader/follower")])])}]};e.a=a}});
//# sourceMappingURL=31.6fcd9a5.js.map