There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to ...
分类:
其他好文 时间:
2019-11-21 11:58:07
阅读次数:
69
https://www.sohu.com/a/328061695_99908665 https://www.cnblogs.com/shengdimaya/p/5384884.html ...
分类:
数据库 时间:
2019-11-20 13:04:08
阅读次数:
67
写在前面的话 上一节的复制集也就是主从能够解决我们高可用和数据安全性问题,但是无法解决我们的性能瓶颈问题。所以针对性能瓶颈,我们需要采用分布式架构,也就是分片集群,sharding cluster! 架构说明 架构规划: 我们这里准备了 4 台虚拟机:192.168.200.101-104 在分片集 ...
分类:
数据库 时间:
2019-11-20 13:02:52
阅读次数:
82
Reference源码分析 首先我们先看一下Reference类的注释: /** * Abstract base class for reference objects. This class defines the * operations common to all reference obje ...
分类:
其他好文 时间:
2019-11-19 15:45:59
阅读次数:
73
There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to ...
分类:
其他好文 时间:
2019-11-19 13:47:00
阅读次数:
65
一、安装Redis集群 安装步骤参照网上教程,Mac安装步骤参照https://github.com/muyl/mac docker redis cluster 二、创建SpringBoot工程 1. 创建Redis配置类 2. SpringBoot属性文件 3. SpringBoot启动类 4. ...
分类:
其他好文 时间:
2019-11-19 01:13:10
阅读次数:
69
上一篇说到Spark的yarn client运行模式,它与yarn cluster模式的主要区别就是前者Driver是运行在客户端,后者Driver是运行在yarn集群中。yarn client模式一般用在交互式场景中,比如spark shell, spark sql等程序,但是该模式下运行在客户端 ...
分类:
其他好文 时间:
2019-11-18 22:14:29
阅读次数:
101
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2019-11-17 13:09:53
阅读次数:
72
问题场景 $(function () { Highcharts.chart('container', { title: { text: 'line' }, xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', ' ...
分类:
其他好文 时间:
2019-11-16 13:01:41
阅读次数:
92
1. consul的基本介绍 在分布式架构中,服务治理是一个重要的问题。在没有服务治理的分布式集群中,各个服务之间通过手工或者配置的方式进行服务关系管理,遇到服务关系变化或者增加服务的时候,人肉配置极其麻烦且容易出错。之前在一个C/C++项目中,采用ZooKeeper进行服务治理,可以很好的维护服务 ...
分类:
其他好文 时间:
2019-11-15 22:38:54
阅读次数:
93