yellow chicks
yellow chicks
go version: go1.7.1 linux/amd64 when you compile " go build fastping.go " , you may attack below errors. the solution: you need to "go get -u golang.org/x/net/icmp" . # golang.org/x/net/ipv6...
在写.proto协议文件时,文件之间的引用目录问题,下面这个是怎么引用到的呢?还是vendor/istio.io/api下面的 比如:`$GOPATH/src/istio.io/istio/template/apikey/template.proto`文件中的引用`policy/v1beta1/type.proto`,却是在`$GOPATH/src/istio.io/istio/vendor/istio.io/api/mixer/adapter/model/v1beta1/type.proto`文件中
我们在$GOPATH/src/istio.io/istio/mixer/pkg/server/server.go做过一次静态的校验? 138 tmplRepo := template.NewRepository(a.Templates) 139 adapterMap := config.AdapterInfoMap(a.Adapters, tmplRepo.SupportsTemplate) 为何在初始化runtime或者后端配置存储变化时,需要再做一次全量的校验呢?上面的这次校验不做,不就可以了吗? $GOPATH/src/istio.io/istio/mixer/pkg/runtime/config/handler.go 76 for handler, instances := range instancesByHandler { 77 createEntry(old, t, handler, instances, snapshot.ID, 78 func(handler hndlr, instances...
在$GOPATH/src/istio.io/istio/mixer/pkg/runtime/config/ephemeral.go文件中BuildSnapshot方法重新构建一个稳定的环境需要很长时间(因为是涉及到所有后端存储配置的构建),如果在业务中有突发情况需要更新后端存储配置,那这样操作的话,会不会给业务带来很大影响?
https://github.com/istio/istio/issues/10596
Store interface和Backend interface都存在一个WaitForSynced(time.Duration) error方法,这个istio mixer采用的单向超时等待,后端存储服务加载VirtualService、Template和DestinationRule所有配置文件到内存中。 合理的方法应该是采用回调等待通知机制,来反馈。不然上面的做法有风险
两个goroutine pool,一个是接收envoy proxy的grpc client请求的最大并发量goroutine池,另一个是后端adapter处理dispatcher发送过来的最大并发量goroutine池。 它们都是由goroutine池和channel任务队列构成的。但是直至到istio的v1.0.3版本中还是由一个参数控制的,那就是当channel队列满时,保证每个任务都能够交付给一个goroutine执行。这个是不合理的,因为当channel队列不满时,那么goroutine池肯定有idle状态。所以channel队列长度与goroutine池中的数量相等时不合理的。
 有一个地方比较有疑问,metrics、traces、log能够作为template,大家都理解。为什么k8s这么具体的服务也能作为模板呢?还是直接使用adapter中的Handler。都不在template目录下创建k8s目录了
```shell === RUN TestAuthentication === RUN TestAuthentication/Valid_jwt_and_valid_seed err: nats: no servers available for connection authentication_test.go:56: Did not expect error during connect nats: no servers available for connection === RUN TestAuthentication/Valid_jwt_and_invalid_seed...