码迷,mamicode.com
首页 >  
搜索关键字:cloc    ( 453个结果
框架篇:分布式全局唯一ID
前言 每一次HTTP请求,数据库的事务的执行,我们追踪代码执行的过程中,需要一个唯一值和这些业务操作相关联,对于单机的系统,可以用数据库的自增ID或者时间戳加一个在本机递增值,即可实现唯一值。但在分布式,又该如何实现唯一性的ID 分布式ID的特性 数据库自增的ID Redis分布式ID Zookee ...
分类:其他好文   时间:2021-06-28 19:32:12    阅读次数:0
每日日报 20210122
今天学习了time date组件 <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="MM/dd/yy h:mmaa"/> <TextClo ...
分类:其他好文   时间:2021-06-21 20:41:25    阅读次数:0
ntp时间同步
1:开机同步 开机时自动同步可编辑 /etc/ntp/step-tickers 文件 1 vim /etc/ntp/step-tickers 2 3 # List of NTP servers used by the ntpdate service. 4 5 ntp.aliyun.com 6 tim ...
分类:其他好文   时间:2021-06-17 16:54:51    阅读次数:0
Elasticsearch 学习之不停止服务,完成升级重启维护操作
我们可以设置集群的平衡参数来暂时禁用掉平衡,具体步骤如下: 1.如果可能的话,先暂停掉数据新增和更新操作,这样会提高集群恢复的时间; 2.禁用集群分片平衡操作,直到告诉集群可以恢复平衡操作为止,禁用配置方式: PUT /_cluster/settings { "transient" : { "clu ...
分类:其他好文   时间:2021-06-02 12:58:20    阅读次数:0
python3.6 安装uwsgi报错处理
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 ...
分类:编程语言   时间:2021-03-18 14:13:35    阅读次数:0
ceph集群搭建
一、服务器规划 主机名 主机IP 磁盘配比 角色 node1 public-ip:10.0.0.130cluster-ip:192.168.2.130 sda,sdb,sdcsda是系统盘,另外两块数据盘 ceph-deploy,monitor,mgr,osd node2 public-ip:10. ...
分类:其他好文   时间:2021-03-10 13:09:58    阅读次数:0
Lesson 6 smash-and-grab
The expensive shops in a famous arcade near Piccadilly were just opening. At this time of the morning, the arcade was almost empty. Mr. Taylor, the ow ...
分类:其他好文   时间:2021-02-26 13:05:25    阅读次数:0
8 执行通过率饼图
1 饼图 使用百分比显示通过和失败的用例比例 可以更直观的让领导看到测试结果 2 pyplot 参数说明 x:输入的数据数组 explode:数组,可选参数,默认为None。 用来指定每部分从圆中外移的偏移量。 例如:explode=[0,0.2,0,0],第二个饼块被拖出。 labels:每个饼块 ...
分类:其他好文   时间:2021-02-10 13:13:07    阅读次数:0
Mybatis Plus 3.4版本之后分页插件的变化
一、MybatisPlusInterceptor 从Mybatis Plus 3.4.0版本开始,不再使用旧版本的PaginationInterceptor ,而是使用MybatisPlusInterceptor。 MybatisPlusInterceptor是一系列的实现InnerIntercep ...
分类:其他好文   时间:2021-01-26 12:26:31    阅读次数:0
STM32-定时器中断实现
一、工具 1、硬件:STM32L053R8单片机(HAL库) 2、编译环境:Atollic TrueSTUDIO for STM32 9.3.0 3、辅助工具:STM32CubeMX 二、单片机系统时钟配置 1、系统时钟配置(没有显示的默认),这里选择的是内部的高速时钟(HSI)作为时钟源,系统时钟 ...
分类:其他好文   时间:2020-12-24 11:55:35    阅读次数:0
453条   1 2 3 4 ... 46 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!