分布式调度框架。
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
18 KiB

webpackJsonp([28],{1021:function(t,e,s){"use strict";e.__esModule=!0;var a,r=s(1074),i=(a=r)&&a.__esModule?a:{default:a};e.default={name:"gauge",data:function(){return{}},props:{id:String,name:String,value:Number},methods:{},created:function(){},mounted:function(){echarts.init(document.getElementById(this.id)).setOption((0,i.default)(this.value),!0)},components:{}}},1071:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(1021),r=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var n=s(1075);var o=function(t){s(1072)},l=s(29)(r.a,n.a,!1,o,null,null);e.default=l.exports},1072:function(t,e,s){var a=s(1073);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("c78b4d34",a,!0,{})},1073:function(t,e,s){(t.exports=s(34)(!1)).push([t.i,".gauge-model{width:100%;height:360px;overflow:hidden;margin:0 auto}.gauge-model .gauge-echart{width:350px;margin:auto;margin-bottom:-80px}.gauge-model .text-1{width:100%;margin:0 auto;font-size:32px;text-align:center}.gauge-model .value-p{height:254px;line-height:254px;text-align:center}.gauge-model .value-p>b{font-size:100px;color:#333}",""])},1074:function(t,e,s){"use strict";e.__esModule=!0,e.default=function(t){return{series:[{type:"gauge",center:["50%","45%"],radius:"80%",startAngle:200,endAngle:-20,axisLine:{show:!1,lineStyle:{color:[[.5,new echarts.graphic.LinearGradient(0,0,1,0,[{offset:1,color:"#E75F25"},{offset:.8,color:"#D9452C"}],!1)],[.7,new echarts.graphic.LinearGradient(0,0,1,0,[{offset:1,color:"#FFC539"},{offset:.8,color:"#FE951E"},{offset:0,color:"#E75F25"}],!1)],[.9,new echarts.graphic.LinearGradient(0,0,0,1,[{offset:1,color:"#C7DD6B"},{offset:.8,color:"#FEEC49"},{offset:0,color:"#FFC539"}],!1)],[1,new echarts.graphic.LinearGradient(0,0,0,1,[{offset:.2,color:"#1CAD52"},{offset:0,color:"#C7DD6B"}],!1)]],width:10}},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},pointer:{length:"45%"},detail:{show:!1}},{type:"gauge",center:["50%","45%"],radius:"70%",startAngle:200,endAngle:-20,axisLine:{show:!0,lineStyle:{color:[[.5,"#DA462C"],[.7,"#FF9618"],[.9,"#FFED44"],[1,"#20AE51"]],width:30}},splitLine:{length:30,lineStyle:{width:2}},axisTick:{length:20},axisLabel:{color:"black",distance:5},detail:{formatter:"{score|{value}%}",offsetCenter:[0,"50%"],backgroundColor:"#2D8BF0",height:30,rich:{score:{color:"white",fontFamily:"微软雅黑",fontSize:32}}},data:[{value:t||0,label:{textStyle:{fontSize:12}}}]}]}}},1075:function(t,e,s){"use strict";var a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"gauge-model"},[e("div",{staticClass:"gauge-echart"},[e("div",{staticStyle:{height:"380px"},attrs:{id:this.id}})]),this._v(" "),e("div",{staticClass:"text-1",staticStyle:{"margin-top":"-104px"}},[this._v("\n "+this._s(this.name)+"\n ")])])},staticRenderFns:[]};e.a=a},1147:function(t,e,s){"use strict";e.__esModule=!0;var a=d(s(30)),r=s(123),i=d(s(1071)),n=d(s(889)),o=d(s(701)),l=d(s(696)),c=d(s(230)),p=d(s(697));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"servers-worker",data:function(){return{isLoading:!1,workerList:[],color:c.default.color}},props:{},methods:Object.assign({},(0,r.mapActions)("monitor",["getWorkerData"])),watch:{},created:function(){},mounted:function(){var t=this;this.isLoading=!0,this.getWorkerData().then(function(e){t.workerList=a.default.map(e,function(t,e){return a.default.assign(t,{resInfo:JSON.parse(t.resInfo)})}),t.isLoading=!1}).catch(function(){t.isLoading=!0})},components:{mList:n.default,mListConstruction:p.default,mSpin:o.default,mNoData:l.default,mGauge:i.default}}},1294:function(t,e,s){var a=s(1295);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s(35)("45d4fb88",a,!0,{})},1295: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}",""])},1296: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:"Worker "+t.$t("Manage")}},[s("template",{slot:"content"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.workerList.length,expression:"workerList.length"}],staticClass:"servers-wrapper"},t._l(t.workerList,function(e,a){return s("div",{staticClass:"row-box"},[s("div",{staticClass:"row-title"},[s("div",{staticClass:"left"},[s("span",{staticClass:"sp"},[t._v("IP: "+t._s(e.host))]),t._v(" "),s("span",{staticClass:"sp"},[t._v(t._s(t.$t("Port"))+": "+t._s(e.port))]),t._v(" "),s("span",{staticClass:"sp"},[t._v(t._s(t.$t("Zk registration directory"))+": "+t._s(e.zkDirectory))])]),t._v(" "),s("div",{staticClass:"right"},[s("span",{staticClass:"sp"},[t._v(t._s(t.$t("Create Time"))+": "+t._s(t._f("formatDate")(e.createTime)))]),t._v(" "),s("span",{staticClass:"sp"},[t._v(t._s(t.$t("Last heartbeat time"))+": "+t._s(t._f("formatDate")(e.lastHeartbeatTime)))])])]),t._v(" "),s("div",{staticClass:"row-cont"},[s("div",{staticClass:"col-md-4"},[s("m-gauge",{attrs:{value:(100*e.resInfo.cpuUsage).toFixed(2),name:"cpuUsage",id:"gauge-cpu-"+e.id}})],1),t._v(" "),s("div",{staticClass:"col-md-4"},[s("m-gauge",{attrs:{value:(100*e.resInfo.memoryUsage).toFixed(2),name:"memoryUsage",id:"gauge-memory-"+e.id}})],1),t._v(" "),s("div",{staticClass:"col-md-4"},[s("div",{staticClass:"text-num-model"},[s("div",{staticClass:"value-p"},[s("b",{style:{color:t.color[a]}},[t._v(t._s(e.resInfo.loadAverage))])]),t._v(" "),s("div",{staticClass:"text-1"},[t._v("\n loadAverage\n ")])])])])])}),0),t._v(" "),t.workerList.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},648:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s(1147),r=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var n=s(1296);var o=function(t){s(1294)},l=s(29)(r.a,n.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),r=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var n=s(709);var o=function(t){s(707)},l=s(29)(r.a,n.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),r=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var n=s(700);var o=function(t){s(698)},l=s(29)(r.a,n.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),r=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var n=s(704);var o=function(t){s(702)},l=s(29)(r.a,n.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),r=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,function(){return a[t]})}(i);var n=s(892);var o=function(t){s(890)},l=s(29)(r.a,n.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=28.3e34ffe.js.map