ICode9

精准搜索请尝试: 精确搜索
  • 谁说 Spring Cloud Gateway不支持灰度发布的?2021-06-09 09:03:26

    大家好,我是飘渺Jam,一名来自三流城市三流公司的三流程序员,这是我们的第157篇原创文章,如果你喜欢请记得给我一个点赞与转发。 系列教程将会在流量降低时转为付费位置,流量多时将不会,各位抓紧时间学习哟~ 前言 这篇文章来源于粉丝提出的一个问题:如何解决多环境统一注册中心服务

  • openstack转移新建虚拟机存储路径2021-06-03 22:57:13

    在云计算openstack中以为新建的虚拟机都存放在/var/lib/nova/instances中,在新建虚拟机时内存当然不够用,所以可以将nova转移到新的存储位置 以下操作只在计算节点上进行 一:停止虚拟机    查看虚拟机:   $nova list   停止将要迁移的虚拟机   $nova stop INSTANCEID二:数

  • OpenStack(kilo)界面dashboard的二次开发(四)-国际化2021-05-07 09:55:42

    openstack界面支持英语、简体中文、繁体中文等多种语言。用户可以在用户设置中进行设置。如果要对openstack进行二次开发,那么就一定要对界面上的标题、提示的内容等进行修改。国际化看下面两幅图,分别是简体中文、English的实例页面: openstack的界面采用的是django的架构,django国际

  • IDEA 2021 没有Allow parallel run2021-05-06 21:03:47

    安装IDEA 2021新版的朋友可能发现,需要运行多个客户端时,找不到Allow parallel run。 那么接下来就让我带朋友去找找新版本的它在哪里??? 此时,还是选择Edit Configurations进入选项编辑 然后点击Modify options,在弹窗中选择Allow multiple instances,最后Apply!!!

  • [AWS] Updating Elastic Beans Talks2021-05-05 03:33:29

      All at once Deploys to all instances simultaneously. You will experience a total outage. Not ideal for mission-critical production system. Rolling back: another outage to get back to the previous version Rolling Deployment Policy Deploys the new vers

  • 【jmespath】—4. 进阶 Flatten Projections2021-04-23 18:03:21

    这里要怎么翻呢?扁平投影?一、Flatten Projections1. 核心1这个可以暂时忽略,一个重要的核心是:对于列表/对象投影,在投影中创建投影时,原始文档的结构将保留。说人话就是,比如下面的例子。可以看到,reservations列表中嵌套了字典,而instances的value,又是一个列表。这时候,用reservations[*].

  • [AWS - Design Resilient Architectures] 1.2 Design highly available and/or fault-tolerant architectur2021-04-19 22:05:35

    Cloud computing models: With cloud deployment, nothing is installed on premise, but an Internet connection and network infrastructure solutions With hybrid cloud deployment, some resources are installed locally and others are in the cloud Intrastructure

  • springcloud获取注册中心服务列表2021-03-19 16:58:52

    @Autowired private DiscoveryClient discoveryClient; List<String> services = discoveryClient.getServices(); log.info("Services: {}", services); if(CollectionUtils.isNotEmpty(services)){ for(String service : services){ List<S

  • [AWS] EC2 - Elastic Load Balancing2021-03-16 15:36:18

    Let's have a look at how to create a load balancer, and see the configuration details for an existing load balancer. A. Prerequisite Go to the EC2 dashboard. In order to use elastic load balancing, you will need to make sure that you've launched

  • TypeError: ‘>=‘ not supported between instances of ‘NoneType‘ and ‘str‘2021-01-23 16:30:27

    File “G:\Anaconda3\lib\distutils\cygwinccompiler.py”, line 129, in init if self.ld_version >= “2.10.90”: TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘str’ conda install libpython 即可解决问题,如果海报gcc的错误,那就下载visua

  • 【LeakCanary】Getting Started2021-01-20 18:59:23

    reference from:https://square.github.io/leakcanary/getting_started/ Confirm vt. 确认;确定;证实;批准;使巩固 To use LeakCanary, add the leakcanary-android dependency to your app’s build.gradle file: 使用LeakCanary,添加 leakcanary-android 的依赖库到你 app(Mode

  • 2021-01-15 日记2021-01-15 22:35:38

    晴,微风。 三天没有写日记了,12号和豪去医院补牙,下午打了场球,晚上聚了一下,时间比较晚了,遂未写;13号离校回家,刚到家就和老同学打了场球,被球场上的一个壮汉撞得两眼发黑,四肢酸痛,遂又未写;14号去了外婆家,便再次未写。 从昨天开始便开始了科目三的学习,我计划用每天早上6点半到7点半这段时

  • # 使用Spring cloud Ribbon异常:java.lang.IllegalStateException: No instances available for XXX2021-01-10 11:32:23

    java.lang.IllegalStateException: No instances available for XXX 问题描述: 是这样的,我在学习Ribbon时,总是报这个异常,但是注册中心里明明有这个实例。填上去却总是报错。 根据这篇文章https://blog.csdn.net/szq2mei/article/details/101940475,发现自己用错了东西。 记录一下,Ri

  • 项目启动自动执行方法的几种方式2020-11-23 18:04:24

    1.具体类实现InitializingBean接口,实现其afterPropertiesSet()方法;或抽象类实现该接口方法,实例化子类时也会启动afterPropertiesSet()方法。 示例链接 2.实现ApplicationListener接口,实现onApplicationEvent方法;如下示例,程序启动时获取实现LifeCycle接口的类,运行LifeCycle实现类

  • Stacking2020-11-17 10:34:27

    Ensemble Learning的基本思想就是将多个基学习器组合在一起,产生泛化能力更强的模型。 组合策略有许多种,包括Voting、平均法和Stacking等,Stacking就是选择某种学习器作为组合基学习器的方式。 既然要结合多个基学习器的优点,那么基学习器的选择最好是“准而不同”,元学习器一般选择

  • 一次mysql数据库性能调优2020-08-28 19:31:54

         背景:使用Navicat执行show processlist(查看所有数据库进程),发现有大量state处在 “Opening tables”的进程,执行kill命令,再次执行show processlist发现command处于killed状态(此时线程已于客户端断开连接,但在服务器上并没有真正终止),执行SELECT * FROM information_schema.INN

  • RedLock底层实现2020-06-08 13:05:35

      https://redis.io/topics/distlock The Redlock algorithm In the distributed version of the algorithm we assume we have N Redis masters. Those nodes are totally independent, so we don’t use replication or any other implicit coordination system. We already

  • 发现服务2020-05-07 23:55:52

    @Resource private DiscoveryClient discoveryClient; #spring的包 @GetMapping(value="/payment/discovery") public Object discovery(){ List<String> services = discoveryClient.getServices(); services.forEach(item -> { log.info(

  • MYSQL 5.6版本占用内存高的问题2020-04-03 12:00:14

    Mysql5.6.28-log版本,再创建数据库导入大量表以后,重启启动,16G内存几乎占满. 5.6.28 有对应performance_schema 性能监控模块(估计是5.6.28的bug) 5.6.40 performance_schema 模块启用可正常使用 可以尝试通过调整 performance_schema的对应参数来调试 参考 5.6.40的参数修改 per

  • 负载均衡算法2020-03-31 13:06:28

    负载均衡算法:rest接口第几次请求数 % 服务器集群总数量 = 实际调用服务器位置下标 , 每次服务重启动后rest 接口计数从1开始 @Component public class MyLB implements LoadBalancer { private AtomicInteger atomicInteger = new AtomicInteger(0); public final int g

  • ansible 推送脚本巡检闽政通2020-02-25 23:55:08

    推送的需要的机子多最好使用数据库,机子少就写死变量了,在被巡检主机上新建一个普通用户,扩展可以用yml role配上数据库就很方便了,懒的花时间折腾这里需要被巡检主机免安装就没用数据库记录,yml要用copy模块后用sh执行脚本,用script模块会找不到执行路径还写了一套用于监控告警的脚本,还

  • 【VIS】Classifying,Segmenting,and Tracking Object Instances in Video with Mask Propagation2020-02-24 18:06:09

    Abstract 在Mask-RCNN的基础上加一个在一段video clip中可以propagate instance masks的模块。这样可以参照clip最中间那个instances segmentation 来predict clip-level的instance tracks Method MaskProp以一个video的随机长度L作为输入然后输出一个video-level的instance se

  • 通过Nacos让Nginx拥有服务发现能力2020-02-05 10:40:56

    背景 先来回忆一下, nginx 如何配置多个实例的负载均衡,配置如下: upstream serverList { server 172.17.0.111:9999; server 172.17.0.110:9999; } server { location / { proxy_pass http://serverList; } } 当我们的服务实例变化时,要手动修改 ngin

  • Python-无法访问类的实例2019-11-08 17:57:18

    我陷入一个可能很简单的问题,但我无法弄清楚.我正在尝试开发用于创建时间表的桌面应用程序.我正在使用Tkinter和Python 3.6.我有一个Teacher类,因此用户可以创建具有各种属性的新实例. class Teacher: """The properties of the teachers""" allTeachers = [] def __i

  • java-给定一个单例:是否需要静态方法和变量?2019-11-01 10:11:43

    为了寻求更多意见,我重写了问题(我正在学习如何提问,而英语不是我的母语)… 将所有方法和全局变量保持不变是多余的还是最佳实践? (我的意思是,本身已经只有一个实例)解决方法:如果这些方法都不依赖于类的状态(实例属性),那么您就不需要单例,只需将它们全部声明为静态-您将拥有一个

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有