• 2024-06-16Redis Cluster集群模式部署
    RedisCluster模式部署Redis的哨兵模式基本已经可以实现高可用,读写分离,但是在这种模式下每台Redis服务器都存储相同的数据,很浪费内存,所以在redis3.0上加入了Cluster集群模式,实现了Redis的分布式存储,也就是说每台Redis节点上存储不同的内容。下面是Cluster集群模式的一
  • 2024-06-11Connected Graph
    $\quad$我在题库做题时被一道计数类DP的高精度恶心到了。本着能不打高精就不打的原则,我就用了\(long\\\\double\)来解决这个问题。$\quad$但毕竟是浮点类型的,勾石精度真的很逆天。试了很久决定写\(Python\)(doge)。$\quad$就直接去学\(Python\)了,然后发现还是有丢
  • 2024-05-23Archery 平台执行DDL error:Threads_connected exceeds its critical threshold
    在数据库管理平台Archery上定时任务执行DDL操作,第二天发现报错,报错信息如下:Errorcopyingrowsfrom`DB`.`TABLE_NAME`to`DB`.`_TABLE_NAME_new`:Threads_connected=1358exceedsitscriticalthreshold1300登录查看Threads_connected信息,Threads_connected一直处于大
  • 2024-05-16pad&pin
    Referencefromcodeium:Question1:whatisapadandwhatisapininthiscontext?Whatistherelationbetweenthem?Answer1:Inthecontextofmicrocontrollersandotherembeddedhardware,a"pad"anda"pin"refertoaspectsof
  • 2024-04-11zk实践操作
    1.入门基础应用场景ZooKeeper主要服务于分布式系统,可以用ZooKeeper来做:统一配置管理、统一命名服务、分布式锁、集群管理。使用分布式系统就无法避免对节点管理的问题(需要实时感知节点的状态、对节点进行统一管理等等),而由于这些问题处理起来可能相对麻烦和提高了系统的复杂
  • 2024-03-18FireDAC中官方SQL语句增insert,查Select,删delete,改update语句写法(20)
    procedureTfrmGettingStarted.btnInsertClick(Sender:TObject);variID:Integer;beginifnotFDconnection1.ConnectedthenExit;//Insertarecord增FDconnection1.ExecSQL('insertintoCategories(CategoryName,Description,Picture)'
  • 2024-02-18IfcConnectionTypeEnum
    IfcConnectionTypeEnum类型定义该枚举定义了基于路径的元素(如IfcWallStandardCase)连接的不同方式,如图179所示。 IFC2.0中的新型 EnumerationdefinitionConstantDescriptionATPATHConnectionalongthepathoftheconnectedelement.ATSTARTConnectionatthe
  • 2024-01-22【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个pattern
    目录题目地址思路代码MySQL代码逐行翻译为Pandas代码等效Cypher查询(未验证)题目地址https://leetcode.cn/problems/strong-friendship/思路就是在无向图中寻找这个pattern:(*Mathematica*)GraphData[{"CompleteTripartite",{1,1,3}}]SQL写还是比较麻烦。更加复杂的查询还是
  • 2024-01-19“cluster nodes”命令
    rediscluster集群部署后,可以通过redis-cli的 clusternodes 命令查看集群的节点信息。输出的每行,都代表一个节点,下面我们讲解下这些信息的含义,为了更直观些,我们将这些信息放入表格里:idip:portflagsmasterping-sentpong-recvconfig-epochconfig-epochslot46dc4de0
  • 2023-10-24Zookeeper 创建6种的节点实例(转)
    原文:https://blog.csdn.net/pengweismile/article/details/115444734作者:伟娃娃Zookeeper是ApacheHadoop的一个子项目,它主要用来解决分布式系统中经常遇到的一些数据管理问题,例如,统一命名,状态同步,集群管理,分布式应用配置管理。Zookeeper的定位,这个动物园的管理者,如下图ooke
  • 2023-10-23Jlink V8 Interface Description
     JTAGInterfaceConnection(20pin) J-LinkandJ-TracehaveaJTAGconnectorcompatibletoARM'sMulti-ICE.TheJTAGconnectorisa20wayInsulationDisplacementConnector(IDC)keyedboxheader(2.54mmmale)thatmateswithIDCsocketsmou
  • 2023-08-08c#操作mongodb防止重复插入
    原理:把可以唯一标识的字段提出来放在字符串列中,当字符串不包含要插入的数据时再进行数据操作MongoClientclient;MongoServerserver;MongoDatabasedatabase;client=newMongoClient("mongodb://192.168.0.4");serv
  • 2023-07-27ubuntu 命令调节显示器亮度
    1.显示器名字xrandr-q|grep"connected"HDMI-0connectedprimary1920x1080+0+0(normalleftinvertedrightxaxisyaxis)527mmx297mmDP-4connected1920x1080+1920+0(normalleftinvertedrightxaxisyaxis)527mmx297mm2.调节亮度xrandr--outpu
  • 2023-06-211595. Minimum Cost to Connect Two Groups of Points] (Hard)
    Description1595.MinimumCosttoConnectTwoGroupsofPoints(Hard)Youaregiventwogroupsofpointswherethefirstgrouphassize1points,thesecondgrouphassize2points,andsize1>=size2.Thecostoftheconnectionbetweenanytwopointsar
  • 2023-06-13emqx 监听设备连接、掉线
    方式一emqx中配置规则,将上线、离线的消息转发到新的主题,随后程序中监听这个新主题即可规则sql配置为SELECT*FROM"$events/client_connected","$events/client_disconnected"转发配置随后将这个规则启用即可方式二使用系统消息捕获上线、离线的消息随后处理业
  • 2023-06-07redis-cli连接并管理redis集群
    某些场景下,redis集群以内网ip发现节点并提供服务,所以只能在服务器环境下以内网ip访问,此时redis-cli无疑是最可靠的工具。而各种gui工具都傻眼了(当然webui类工具除外)。redis-clinodejs版redis-clinodejs版可以脱离redis-server独立安装。安装yuminstallepel-releas
  • 2023-06-02codeforces Connected Components(寻找补图的连通块)
    http://codeforces.com/contest/920/problem/EE.ConnectedComponents?timelimitpertestmemorylimitpertestinputoutputn verticesand  edges.Insteadof
  • 2023-05-20POJ1737 Connected Graph ( n点无向连通图计数
    题意说明:求\(n\)个点的无向连通图个数据说已经非常典了,但是我太菜了不会组合数学,最近补档时看到这道题,决定记录下来理理思路
  • 2023-05-17Redis Cluster两slave节点处理
    背景系统:CentOS7.6RedisClusterIP端口角色192.168.100.116380Master192.168.100.116381slave192.168.100.126380Master192.168.100.126381Slave192.168.100.136380Master192.168.100.136381Slave 因为某种原因导致(192.168.100.12)操
  • 2023-05-08CF920E Connected Components? 题解
    一道线段树优化建图好题(大雾扣掉一些边看起来不好做,我们直接大力加上存在的边,然后跑连通块。对于一个点,如果他被扣掉了\(k\)个邻居,那么没扣掉的那些形成了至多\(k+1\)个连续段,可以用线段树优化建图向每个连续段各用\(\log\)的代价连边。由于总共扣掉了\(m\)条边,所以总共
  • 2023-04-306795 Connected Components 并查集
     描述 编写一个程序,读取SNS(社交网络服务)中的关系,并判断给定的用户对是否可以通过网络相互访问。 输入 第一行给出了两个整数n和m。n是SNS中的用户数,m是SNS中的关系数。SNS中的用户由ID0,1,...,n-1标识。在接下来的m行中,给出了关系。每个关系由两个整
  • 2023-04-29连通区域(Connected Components)问题
    packagemain.java.test;importjava.util.Arrays;importjava.util.Scanner;publicclasst5{publicstaticvoidmain(String[]args){//Scannersc=newScanner(System.in);//Strings=sc.nextLine();Strings="35&qu
  • 2023-04-15D. Connected Components
    D.ConnectedComponentshttps://www.codeforces.com/contest/292/problem/D 思路由于需要删除任意连续段的连接线,引入前缀和连续段的左右两边都需要,所以引入两个前缀和。 https://blog.csdn.net/qq_28954601/article/details/79281640Codehttps://blog.csdn.net/q
  • 2023-03-30redis cluster 故障后,主从位于不同节点的修复【转】
    今天机房有一台物理机宕机了,有一个虚拟机192.168.1.122,其上有两个redis节点也不能用了。    redis没有备份,丢失的192.168.1.122节点只能重建。    我找运维的
  • 2023-03-21Zookeeper——实践操作集合命令
    摘要本博文主要介绍Zookeeper手动执行的一些常用的命令。一、节点增删改查1.1启动服务和连接服务#启动服务bin/zkServer.shstart#连接服务不指定服务地址则默认连接到lo