- 博客(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
原创 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
原创 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
原创 高并发下缓存失效问题
缓存穿透指查询一个一定不存在的数据,由于缓存是不命中,将去查询数据库,但是数据库也无此记录,我们没有将这次查询的null写入缓存,这将导致这个不存在的数据每次请求都要到存储层去查询,失去了缓存的意义风险: 利用不存在的数据进行攻击,数据库瞬时压力增大,最终导致崩溃解决: null结果缓存,并加入短暂过期时间缓存雪崩缓存雪崩是指在我们设置缓存时key采用了相同的过期时间,导致缓存在某一时刻同时失效,请求全部转发到DB,DB瞬时 压力过重雪崩。解决: 原有的失效时间基础上增加一个随机值,比如1-5分
2021-02-18 07:59:54 139
原创 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
原创 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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人