background picture of the home page

Hi,Friend

追生,梦死,志立

ShardingSphere分布式主键id生成解决方案

前面整理了从使用DynamicDatasource进行多数据源配置、集成p6spy进行SQL监控调试、DynamicDatasource配合ShardingSphere进行多数据源分库分表配置的文章。可以移步到历史文章查看,这里就不再赘述。 springboot+mybatis-plus多数据源实现

thumbnail of the cover of the post

ShardingSphere集成dynamic-datasource实现多数据源的分库分表

最近公司业务急数发展,公司一张大表已经接近20亿数据,目前数据规格是阿里云的云数据库PolarDB 8核32G.考虑到后续还会持续增加,势必会影响MySQL的读写性能,所以需要对这张大表进行分表. 一、什么是ShardingSphere? shardingsphere 是一款开源的分布式关系型数据库

thumbnail of the cover of the post

阿里云ECS开启swap

swap分区的作用 在Linux系统中,如果系统需要更多的内存资源并且物理内存已满时,将使用swap分区(交换空间)。使用交换空间为不活跃的进程和数据提供临时存储,并防止物理内存满时内存不足。交换空间充当物理内存的扩展,并允许系统在物理内存耗尽时继续平稳运行。 开启swap分区可能会导致内存I/O性

thumbnail of the cover of the post

CentOS 7配置加速节点访问Github

国内服务器访问GitHub经常会抽风,现在提供两种方法访问 一、配置hosts 首先在 https://www.ipaddress.com 找到 github.com和github.global.ssl.fastly.net对应的IP地址

thumbnail of the cover of the post

docker下部署X-UI+NPM配置Vmess

一、安装docker和docker-compose 1. 更新系统: sudo yum update 2.安装需要的软件包: sudo yum install -y yum-utils device-mapper-persistent-data lvm2 3.添加Docker仓库: sudo yum

thumbnail of the cover of the post