首先声明一个全局变量 var _mallModel = ""; 不管在AJAX回调中还是其他封装好的回调中这么来处理缓存 ...
分类:
其他好文 时间:
2017-09-05 14:39:49
阅读次数:
118
docker深入2-基于swarmmode的服务发现和注册2017/9/4注:【未完待续】标签,表明现在没空继续研究,后续再补上,现在先分享出来,或许有朋友正需要思路和帮助。
一、前言
1、目的
1)研究基于swarmmode的服务发现和注册
2)熟悉使用go和python来写agent调用dockerapi/sdk来达到..
分类:
其他好文 时间:
2017-09-04 15:14:58
阅读次数:
210
node1192.168.56.173
node2192.168.56.174
node3192.168.56.200
node*为主机名称
[root@node1~]#cat/etc/redhat-release
CentOSLinuxrelease7.2.1511(Core)
[root@node1~]#https://github.com/coreos/etcd/releases/download/v3.0.15/etcd-v3.0.15-linux-amd64.tar.gz
tarxfetc..
分类:
其他好文 时间:
2017-09-03 00:19:01
阅读次数:
268
package clientselectorimport ( "errors" "math/rand" "net" "net/rpc" "net/url" "strconv" "strings" "time" "golang.org/x/net/context" "github.com/coreos... ...
分类:
其他好文 时间:
2017-09-01 10:51:32
阅读次数:
300
package concurrencyimport ( v3 "github.com/coreos/etcd/clientv3" "golang.org/x/net/context")// STM is an interface for software transactional memory.t... ...
分类:
其他好文 时间:
2017-08-30 15:45:36
阅读次数:
332
package namingimport ( "encoding/json" etcd "github.com/coreos/etcd/clientv3" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/g... ...
分类:
其他好文 时间:
2017-08-30 15:42:35
阅读次数:
361
package concurrencyimport ( "time" v3 "github.com/coreos/etcd/clientv3" "golang.org/x/net/context")const defaultSessionTTL = 60// Session represents a... ...
分类:
其他好文 时间:
2017-08-30 15:32:25
阅读次数:
292
package mirrorimport ( "github.com/coreos/etcd/clientv3" "golang.org/x/net/context")const ( batchLimit = 1000)// Syncer syncs with the key-value state... ...
分类:
其他好文 时间:
2017-08-30 15:29:38
阅读次数:
263
package clientv3import ( "sync" "time" "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" pb "github.com/coreos/etcd/etcdserver/etcdserverpb" "gol... ...
分类:
其他好文 时间:
2017-08-30 14:20:40
阅读次数:
192
package clientv3import ( "sync" pb "github.com/coreos/etcd/etcdserver/etcdserverpb" "golang.org/x/net/context" "google.golang.org/grpc")// Txn is the ... ...
分类:
其他好文 时间:
2017-08-30 14:19:40
阅读次数:
200