首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏开源部署

    批量删除Nagios的停机计划

    /Del_downtime.sh 877 885 hosts    # 删除System--Downtime下的维护计划中Scheduled Host Downtime从877到885项设置 # . /Del_downtime.sh 886 894 services # 删除System--Downtime下的维护计划中Scheduled Service Downtime从886到894项设置 if [ $3 == "hosts" ];then  for((i=$1;i<=$2;i++));do echo "\[`date +%s`\] DEL_HOST_DOWNTIME;$i"  >> /usr nagios.cmd;done elif [ $3 == services ];then  for((i=$1;i<=$2;i++));do echo "\[`date +%s`\] DEL_SVC_DOWNTIME

    37610编辑于 2022-06-30
  • 来自专栏CNCF

    Kubernetes 零宕机滚动更新

    apiVersion: apps/v1 kind: Deployment metadata: name: zero-downtime labels: app: zero-downtime zero-downtime-d449b5cc4-k8b27 1/1 Running 0 3m9s zero-downtime-d449b5cc4-n2lc4 zero-downtime-d449b5cc4-n2lc4 1/1 Running 0 3m9s zero-downtime-d449b5cc4-sdw8b zero-downtime-d449b5cc4-n2lc4 1/1 Running 0 5m zero-downtime-d449b5cc4-sdw8b zero-downtime-d569474d4-2c7qz 1/1 Running 0 40s zero-downtime-d569474d4-mxbs4

    1.8K21发布于 2020-02-20
  • 来自专栏大前端

    微信小程序 Utils丨SetInterval 实现倒计时

    countDown:function(endTime){ that.setData({ timer: setInterval(function(){ var downTime (endTime.replace(/-/g, "/")).getTime() - new Date().getTime()) // 倒计时结束 if(downTime ) clearInterval(that.data.timer); return; } var d = parseInt(downTime / 1000 / 3600 / 24); var h = parseInt(downTime / 1000 / 3600 % 24); var m = parseInt (downTime / 1000 / 60 % 60); var s = parseInt(downTime / 1000 % 60); d < 10 ?

    99531发布于 2019-10-08
  • 来自专栏乐沙弥的世界

    Oracle RAC环境下如何更新patch(Rolling Patch)

    Downtime Patch)(最小化停机方式) In this mode, OPatch patches the local node, asks users for a sub-set of nodes Rolling patching strategy incur no downtime, however, some rolling patches may incur downtime due to Please refer to patch readme to find out whether post-installation steps requires downtime or not. Bring all instances up Minimum downtime . Shutdown the Oracle instance on node 1  . Startup the Oracle instance on node 3 Rolling patch (no downtime) .

    1.7K10发布于 2018-08-13
  • 来自专栏Android机动车

    『Android Tip』-- 模拟手势操作

    view = (View) object; handler = new ViewHandler(view); view.onTouchEvent(MotionEvent.obtain(downTime , downTime, MotionEvent.ACTION_DOWN, startX, startY, 0)); GestureBean bean = new GestureBean(startX , downTime, MotionEvent.ACTION_DOWN, startX, startY, 0)); GestureBean bean = new GestureBean(startX if (count >= bean.totalCount) { theActivity.dispatchTouchEvent(MotionEvent.obtain(downTime (MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_MOVE, bean.startX + bean.ratioX * count, bean.startY

    1.5K10发布于 2018-08-03
  • 来自专栏python3

    nagios升级要点(从2.x到3.x)

    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 报两个warning和一个critical 两个warning是:downtime_file #comment_file=/usr/local/nagios/var/comments.dat # DOWNTIME FILE # This is the file that Nagios will use for storing host and service # downtime data. #downtime_file=/usr/local/nagios/var/downtime.dat 查找state_retention_file=/usr/local/nagios/var/retention.dat 然后执行 cd /usr/local/nagios/var cat comments.dat >>retention.dat cat downtime.dat >>retention.dat 解决critical

    71710发布于 2020-01-07
  • 来自专栏移动开发的那些事儿

    Android事件分发原理分析

    buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=51416868, downTime buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=51416868, downTime buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=51416868, downTime buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=51416868, downTime buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=51416868, downTime

    1.5K30发布于 2018-09-04
  • 来自专栏乐沙弥的世界

    MySQL MHA简介及其优点

    一、MHA的主要特性 MHA performs automating master failover and slave promotion with minimal downtime, usually safely changing the currently running master to a new master, within mere seconds (0.5-2 seconds) of downtime Total downtime is normally 10-30 seconds. Scheduled master maintenance should be done as quickly as possible, since it entails partial downtime provides graceful master switching within 0.5-2 seconds of writer blockage. 0.5-2 seconds of writer downtime

    1.3K30发布于 2018-08-13
  • 来自专栏用户4822892的专栏

    Monolithic vs Microservice Architecture- Pros and Cons

    Microservices architecture is used only in extremely large-scale applications which cannot withstand downtime architecture can be used in projects which do not require real-time response and they can withstand downtime used frequently can be deployed on function as a service platform, the service will offer almost zero downtime only in big projects which requires either real-time responses or the projects which cannot withstand downtime

    1K51发布于 2019-09-03
  • 来自专栏全栈程序员必看

    数据库可用率监控工具

    total       100.0000%                             uptime(s)   1116020                             downtime                             total       99.9800%                             uptime(s)   0                             downtime 没实用uptime/uptime+downtime的方式计算),并且还能够看到database和host在被监控到的时期的在线和离线时间。 这样能够了解database和host各个时期的使用情况。 DATETIME NULL DEFAULT NULL COMMENT ‘创建时间’,  `updatetime` DATETIME NULL DEFAULT NULL COMMENT ‘更新时间’,  `downtime ipaddr_port_type` (`ipaddr`, `port`, `type`) ) COLLATE=’utf8_general_ci’ ENGINE=InnoDB; CREATE TABLE `db_downtime_detail

    58920编辑于 2022-01-30
  • 来自专栏coding个人笔记

    vue上拉加载更多组件

    onScroll() { if(this.downTime){ clearTimeout(this.downTime); }; this.downTime = setTimeout(() =

    2.7K10发布于 2020-04-24
  • 来自专栏用户4822892的专栏

    Microservices vs Web Services

    these applications scaled up to more components, module independence was sought by developers, zero downtime Expected uptime Comparing cost to run multiple server instances of microservices vs loss of revenue due to downtime If you think that you will have a countable user base and can afford downtime then go for web services If you cannot afford downtime as it can cause a huge loss in revenue or your use case does not allow downtime then go for microservices architecture as it is an extremely fault-tolerant system.

    72830发布于 2020-09-02
  • 来自专栏人工智能

    Unity3D实现UI的单击、双击、拖动状态判断

    isDown = false; private bool isPress = false; private bool isDrag = false; private float downTime if (responseOnceByPress && isPress) { return; } downTime isDrag = Vector3.Distance(Input.mousePosition, mousePosLast) > dragIntervalPos; if (downTime { isPress = true; onPress.Invoke(); } if (downTime } public void OnPointerDown(PointerEventData eventData) { isDown = true; downTime

    24710编辑于 2026-01-20
  • 来自专栏全栈程序员必看

    Task2 计算电梯运行时间线程

    tmp=lists.get(k); } //下电梯需要的时间,并睡眠,直接直达 double downTime =getnTime(getMaxFromList(lists)); Thread.sleep((long)downTime); sumTime+=(timesum +downTime); } return sumTime; } /** * 获取lists中最大值 * @param list

    44020编辑于 2022-08-09
  • 来自专栏用户4822892的专栏

    Benefits of Microservices Architecture

    the database will be allocated to that service efficiently while reducing any chances of crashes or downtime The application usually has no downtime and its deployment process is smoother as it’s done service by frequently can be deployed on a function as a service (FaaS) platform, the service will give almost zero downtime

    64930发布于 2021-04-01
  • 来自专栏用户画像

    PAT 1008

    41 #include<iostream> #include<string> using namespace std; #define max 100 #define upTime 6 #define downTime -a[i-1]; if(interval>0) { time+=(interval*upTime+stayTime); }else{ time+=(interval*(-1)*downTime

    37910发布于 2018-08-27
  • 来自专栏Reinvent Data Science

    Milvus 2.3 Accelerates AI-Powered Applications With GPU Support

    organizations can quickly analyze and act on their data to reduce fraud, deliver better recommendations, avoid downtime include: Change Data Capture (CDC)— Captures and delivers a continuous feed of database updates for zero-downtime vectors within a specified distance- Rolling Upgrades — Enables admins to upgrade Milvus with minimal downtime

    43710编辑于 2023-08-26
  • 来自专栏全栈程序员必看

    时间控件(选择时间范围的插件)「建议收藏」

    一、自我使用代码案例 <script type="text/javascript" src="/assets/laydate/laydate.js"></script> <input name="<em>downTime</em> " placeholder="请点击这里选择日期范围" value="" autocomplete="off" type="text" id="<em>downTime</em>" style="height: 30px 需要用js代码段执行一个laydate实例 <script> //日期范围,指定绑定的DOM元素 laydate.render({ elem: '#<em>downTime</em> false }); //检索时间 function downResume(type) { var down_time = $('#<em>downTime</em>

    6.7K20编辑于 2022-08-25
  • 来自专栏Android相关

    Android中Input事件初始化、接收以及分发

    dispatchedGestureIdBits, id, 0, 0, mPointerGesture.downTime idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime mViewport.displayId, pointerCount, pointerProperties, pointerCoords, xPrecision, yPrecision, downTime keyCode, keyEntry->scanCode, keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime xOffset, yOffset, motionEntry->xPrecision, motionEntry->yPrecision, motionEntry->downTime

    2.5K21发布于 2020-09-24
  • 来自专栏微光点亮星辰

    Oracle 与 MySQL 的差异分析(8):其他常用函数

    eg:select x.phonenumber,x.downtime, row_number() over(partitionby x.phonenumber order by downtime)

    1.8K21发布于 2020-04-10
领券