摘要: 1、强制删除docker镜像 docker rmi -f f7b3f317ec73 2、创建镜像 docker commit b89483411cc9 liyang/oracle-11g:V1 将镜像另存为: docker commit -a "create oracle" -m "create u 阅读全文
posted @ 2017-07-25 18:47 以沫浅夏 阅读(178) 评论(0) 推荐(0) 编辑
摘要: string path = AppDomain.CurrentDomain.BaseDirectory; string startPath = @"c:\Client"; string zipPath = @"c:\Client.zip"; string extractPath = @"c:\Clie... 阅读全文
posted @ 2017-07-23 21:02 以沫浅夏 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 一、Actor简介 actor模型是一种并行计算的数学模型。 响应于收到的消息,演员可以:做出决定,创建更多Actor,发送更多消息,并确定如何响应接收到的下一条消息。 演员可以修改自己的状态,但只能通过消息相互影响(避免需要任何锁)。 actor是一个计算实体,当其收到消息时,可以并发执行如下操作 阅读全文
posted @ 2017-06-26 23:21 以沫浅夏 阅读(1959) 评论(0) 推荐(1) 编辑
摘要: 基于NeqMq 4.0.0-rc5版本发布端: using (var publisher = new PublisherSocket()) { publisher.Bind("tcp://*:5556"); var rng = new Random(); while (t... 阅读全文
posted @ 2016-12-14 14:08 以沫浅夏 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 订阅: 发布: 阅读全文
posted @ 2016-08-25 17:25 以沫浅夏 阅读(438) 评论(0) 推荐(0) 编辑
摘要: class Program { //版本2:使用Redis的客户端管理器(对象池) public static IRedisClientsManager redisClientManager = new PooledRedisClientManager(new string[] { //如果是Redis集群则配置多... 阅读全文
posted @ 2016-08-25 16:35 以沫浅夏 阅读(2953) 评论(0) 推荐(0) 编辑
摘要: 测试:private static void TestIdWorker() { HashSet set = new HashSet(); IdWorker idWorker1 = new IdWorker(0, 0); IdWorker idWorker2 = new IdWorker(1, 0); ... 阅读全文
posted @ 2016-08-09 17:40 以沫浅夏 阅读(2938) 评论(0) 推荐(0) 编辑
摘要: /// /// 加权随机负载均衡算法 /// public static class WeightRandom { static Dictionary dic = new Dictionary { { "192.168.1.12", 1}, {"192.168.1.13"... 阅读全文
posted @ 2016-08-02 15:14 以沫浅夏 阅读(650) 评论(0) 推荐(0) 编辑
摘要: /// /// IP Hash负载均衡算法 /// public static class IpHash { static Dictionary dic = new Dictionary { { "192.168.1.12", 1}, {"192.168.1.13", 1 ... 阅读全文
posted @ 2016-08-02 15:14 以沫浅夏 阅读(4942) 评论(1) 推荐(0) 编辑
摘要: /// /// 加权轮询算法 /// public static class WeightRoundRobin { private static object obj = new object(); private static int pos = 0; static Dictionary dic = ... 阅读全文
posted @ 2016-08-02 15:13 以沫浅夏 阅读(607) 评论(0) 推荐(0) 编辑