- 2024-03-14PG14:auth_delay 插件源码分析
auth_delay让服务器在报告身份验证失败前短暂暂停,以增加对数据库密码进行暴力破解的难度。需要注意的是,这对阻止拒绝服务攻击毫无帮助,甚至可能加剧攻击,因为在报告身份验证失败前等待的进程仍会占用连接。要使用这个模块必须要在postgresql.conf中配置参数shared_preload_libr
- 2023-12-21242-InetAddress.getLocalHost().getHostName() took 20021 milliseconds to respond
一台windows服务器,要部署jar,启动成功,却无法正常请求。会报错:InetAddress.getLocalHost().getHostName()took20021millisecondstorespond.Pleaseverifyyournetworkconfiguration.经查,该服务器启动了一个其他服务,该服务占用了所有的网络请求带宽,导致网络不通。找到服
- 2023-07-31什么是 read timeout
SocketTimeout -Definesthesockettimeout(SO_TIMEOUT)inmilliseconds,whichisthetimeoutforwaitingfordataor,putdifferently,amaximumperiodinactivitybetweentwoconsecutivedatapackets).ConnectTimeout -Determinesthetimeoutinmilliseco
- 2023-07-18时间戳格式化生成毫秒级
std::stringmillisecond_to_str(conststd::int64_t&milliseconds){std::chrono::millisecondsms(milliseconds);std::chrono::time_point<std::chrono::high_resolution_clock,std::chrono::milliseconds>t1(ms);std::time_tt=std::chrono
- 2023-06-15boost::this_thread::sleep_for()死锁
boost::this_thread::sleep_for()会死锁(金庆的专栏)发现睡眠1ms很容易死锁。boost::this_thread::sleep_for(boost::chrono::milliseconds(1)).Boost1.54.0以下代码很可能重现死锁:#include"stdafx.h"#include<iostream>#include<boost/thread.
- 2023-01-15(已解决)Communications link failure The last packet sent successfully to the server was 0 milliseco
使用mybatis逆向工程时,连接数据库出现如下错误:CommunicationslinkfailureThelastpacketsentsuccessfullytotheserverwas0millisecondsago.Thedriverhas
- 2022-11-11基于redis的分布式锁中的setnx+expire非原子操作问题
基于redis的分布式锁,性能和稳定性都非常好.但是redis中setnx+expire是非原子操作,除了用LUA脚本保证实现原子操作,其实可以直接使用redis自带的set方法直接实现.setn
- 2022-10-27istio部署demoapp应用 (十三)Outlier Detection
异常值探测配置示例常用的错误标识consecutiveLocalOriginFailuresconsecutiveGatewayErrors只包括502、503和504错误0值表示禁用consecutive5xxErrors
- 2022-10-26 istio部署demoapp应用 (十)流量镜像
virtualservice-demoapp.yamlapiVersion:networking.istio.io/v1beta1kind:VirtualServicemetadata:name:demoappspec:hosts:-demoapphttp:-name:
- 2022-10-26istio部署demoapp应用 (八)故障注入
故障注入故障注入有两种典型的场景delay:注入“延迟”abort:注入“中断”virtualservice-demoapp.yamlapiVersion:networking.istio.io/v1beta1kind:Virtu
- 2022-10-26istio部署demoapp应用 (六)基于权重的流量分割
架构图virtualservice-demoapp.yamlapiVersion:networking.istio.io/v1beta1kind:VirtualServicemetadata:name:demoappspec:hosts:-demoapphttp:
- 2022-10-25istio部署demoapp应用 (四) Ingress-gateway暴露demoapp
proxy-gateway.yamlapiVersion:networking.istio.io/v1beta1kind:Gatewaymetadata:name:proxy-gatewaynamespace:istio-systemspec:selector:app:i
- 2022-10-25istio部署demoapp多版本应用示例
环境说明frontend(proxy):前端应用,会请求后端的demoappservice:proxydemoapp:后端应用同时部署两个版本 部署demoappv1.0deploy-demoapp-v10.yamla
- 2022-10-11时间转换工具
/***毫秒转换为时间字符串*@parammilliseconds*@return*/publicstaticStringtimeStampToDhms(longmilliseconds){longday=TimeUnit.MILLISECONDS.toDa