自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

原创 k8s Cannot contact maven-25gxr: java.lang.InterruptedException

k8s mvn build 时报错解决方案提升配置ref:https://blog.csdn.net/qq_45549245/article/details/114016534

2021-02-24 12:20:01 895 1

原创 mall 项目 k8s

推荐集群配置(最低 dev)4cpu memory 8g 四台(1 master 3slaver)master 配置可以降低本项目架构

2021-02-24 12:19:05 601

原创 k8s使用route 首先要安装 ingress-controller.yaml

k8s使用route 首先要安装 ingress-controller.yaml

2021-02-24 10:52:25 785

原创 sonarqube 出现fail

Wait for SonarQube analysis to be completed and return quality gate status错误时删除sonarqube中fail的project

2021-02-24 01:02:02 900

原创 k8s node port 限制

30000 - 32767

2021-02-23 20:20:20 267

原创 github 清空仓库

git clone xxx删除本地仓库文件新加入一个文件git add .git commit -m “del”git remote add origin xxxgit push origin master

2021-02-23 15:57:08 297

原创 mysql cluster

主从复制(mysql config)读写分离,分库分表(shardingproxy config)

2021-02-22 07:34:37 67

原创 k8s helm 安装问题

考虑 mv linux-amd64/tiller /usr/local/bin/tiller先后顺序helm init 后 执行该操作

2021-02-20 13:08:41 78

原创 k8s 删除ClusterRoleBinding and ServiceAccount

kubectl delete clusterrolebinding xxxxxkubectl delete serviceaccount xxxxx -n ???

2021-02-20 08:03:05 2875 1

原创 vmware网关地址的设置

不能为x.x.x.1这个为宿主机ip

2021-02-20 06:30:14 777

原创 高并发系统的思路

缓存,异步,消息队列

2021-02-18 08:08:33 80

原创 高并发下缓存失效问题

缓存穿透指查询一个一定不存在的数据,由于缓存是不命中,将去查询数据库,但是数据库也无此记录,我们没有将这次查询的null写入缓存,这将导致这个不存在的数据每次请求都要到存储层去查询,失去了缓存的意义风险: 利用不存在的数据进行攻击,数据库瞬时压力增大,最终导致崩溃解决: null结果缓存,并加入短暂过期时间缓存雪崩缓存雪崩是指在我们设置缓存时key采用了相同的过期时间,导致缓存在某一时刻同时失效,请求全部转发到DB,DB瞬时 压力过重雪崩。解决: 原有的失效时间基础上增加一个随机值,比如1-5分

2021-02-18 07:59:54 139

原创 接口幂等性的解决思路

1、使用token,在redis中保存,使用一次后销毁。并且利用lua脚本保证原子性

2021-02-18 07:28:59 117

原创 InetAddress.getLocalHost() 分析

该方法会按网卡顺序遍历网卡,以寻找到的第一个ip地址为ipsentinel等各种情况出现Failed to fetch metric from <xxxxxxxxxxx> 时 发现ip地址不对通过修改网卡顺序使得ip正确方法为![在这里插入图片描述](https://img-blog.csdnimg.cn/20210217134745495.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,t

2021-02-17 13:49:45 697

原创 springcloud ip 不准确 解决

ERROR 18480 --- [pool-2-thread-1] c.a.c.s.dashboard.metric.MetricFetcher : Failed to fetch metric from <http://169.254.0.31:8720/metric?startTime=1613536523000&endTime=1613536529000&refetch=false> (ConnectionException: Connection refused: n

2021-02-17 12:37:05 502

原创 sentinel 问题解决

2021-02-17 12:22:41.926 WARN 28124 --- [nio-8333-exec-2] c.a.c.s.d.client.SentinelApiClient : Error when modifying gateway apisjava.util.concurrent.ExecutionException: com.alibaba.csp.sentinel.dashboard.client.CommandFailedException: Command serve

2021-02-17 12:28:27 546 1

原创 熔断,降级,限流 比较

2021-02-16 22:13:29 489

原创 TCP/IP协议分层

2021-02-16 10:18:31 79

原创 秒杀系统设计

2021-02-15 01:43:19 99

原创 收单问题的解决

2021-02-12 06:25:33 234

原创 rabbitmq 保证消息可靠性

建议写一个消息微服务进行调用

2021-02-09 06:20:24 135

原创 redirectAttributes.addFlashAttribute 的分析

thymeleaf doc:${x} will return a variable x stored into the Thymeleaf context or as a request attribute.${param.x} will return a request parameter called x (which might be multivalued).${session.x} will return a session attribute called x.${application

2021-02-09 04:29:54 655

原创 springboot整合rabbitmq与actuator出现bug

bug: circular reference creating RabbitHealthIndicator使用@Autowire 注入 rabbitTemplate时出现@kitonGao Unrelated, closed issues are not a good place to ask for some help. Both Stack Overflow and Gitter are better places to ask. With that said, your problem is t

2021-02-08 06:02:00 405

原创 springboot 整合 rabbitmq时,容器中注入exchange,queue Bean但rabbitmq server 未创建的原因

public class RabbitAdmin implements AmqpAdmin, ApplicationContextAware, ApplicationEventPublisherAware, BeanNameAware, InitializingBeanRabbitAdmin implements InitializingBean在afterPropertiesSet方法中发现,创建queue exchange 的原理 this.connectionFactory.addCo

2021-02-08 04:48:57 955 4

原创 seata 1.0.0 出现direct buffer OOM

在1.1.0 修复了这个bug[#2175] fix direct buffer OOM

2021-02-08 01:00:16 240 1

原创 seata 排错记录 register failed not connect RM

重启seata server发现微服务端口被nacos占用改端口

2021-02-08 00:36:49 1075

原创 rabbitmq 消息过期时间的设置

rabbitmq 设置消息过期时间设置到queue上不能设置到message上原因设置到消息上的时候会有lazy check的机制导致message expire 分别为 1s 30s 300s在queue中的排列为(1, 30, 300)rabbitmq 会先检查 排在queue前面的消息只有300s的msg,时间到期后,变为dead letter 出队列 才会检查后面的msg发现时间早已过期,出队列所以这时后面msg的expire time 没有生效...

2021-02-07 21:03:16 984

原创 seata使用

1). <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-seata</artifactId> <exclusions> <exclusion> <groupId>io.s

2021-02-07 03:10:56 203

原创 引入seata后savebatch 出现异常的解决办法 升高seata版本

==============================

2021-02-07 03:05:16 563

原创 seata解决分布式事务问题 高并发下性能低下 不使用

======

2021-02-06 22:57:06 2576 1

原创 seata 为 2PC的变种

=========

2021-02-06 16:27:13 141

原创 CAP的理解

网络节点之间无法通信的情况下, 节点被隔离,产生了网络分区, 整个系统仍然是可以工作的, 为分区容错性(Partition tolerance, 简称P)整个系统可以访问(Partition tolerance)满足CP舍弃A,也就是满足一致性和容错性,舍弃可用性。如果你的系统允许有段时间的访问失效等问题,这个是可以满足的。就好比多个人并发买票,后台网络出现故障,你买的时候系统就崩溃了。(一个节点无法访问)满足AP舍弃C,也就是满足可用性和容错性,舍弃一致性。这也就是意味着你的系统在并发访问的时

2021-02-05 23:26:06 103

原创 springboot 同一个类方法调用transactional propagation 失效问题

1)、引入 aop starter2)、@EnableAspectJAutoProxy(exposeProxy = true)开启aspectj 动态代理功能,没有interface 也能代理3)、OrderService orderService = (OrderService) AopContext.currentProxy();a() {orderService.b();orderService.c();}...

2021-02-05 19:45:00 163

原创 csrf 出现的原因 cookie的http only 为true

=====================

2021-02-02 16:26:11 297

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除