millken

Results 28 comments of millken

**iotex server `Start` data flow** ![HDeF6hO1ER](https://user-images.githubusercontent.com/176581/190942550-2ccd2c42-05f6-444e-8102-11f70cce6e61.png)

Config moved to a separate folder is to prevent circular imports

> 1. move the default config of consensus to `consensus` pkg > then, default value could be imported in `config.go` like > https://github.com/iotexproject/iotex-core/blob/d6eaa2efddfc6691b0eebcb5a0d2a4c68f444597/config/config.go#L185 > 2. `config.go` should be put under...

zap `Encoder` supportted customize log format,you can implement an encoder to replace default [console encoder](https://github.com/uber-go/zap/blob/master/zapcore/console_encoder.go).

@liyongming1982 这里的N个节点,是要预先cache MP4文件吗?如果是的话,是不是所有节点都要cache这个文件,才能确保后面随机获得的节点是有内容可以提取的。 随机返回会不会选中链路不好的节点,这里应该是有一定算法保证所选节点的是最优的吧?

@liyongming1982 谢谢回复! 1. 如果这N份server了几个很大文件了,随着热度的降低,该文件会怎么处理? 2. 假设N中有1/3的节点都down了,会重新在其他节点生成cache吗?恢复了又如何处理?

OpenSSL版本不兼容,系统版本OpenSSL 1.1.1i,建议使用静态库。

> @millken you may refer to https://programmer.help/blogs/zap-log-classification-and-file-splitting-log-cutting-by-time-integration-demo.html using some existing tools https://github.com/lestrrat-go/file-rotatelogs **WARNINGS THIS PROJECT HAS BEEN ARCHIVED. IT WILL NOT RECEIVE UPDATES, THE AUTHOR DOES NOT WISH TO MAINTAIN...

`lumberjack` rolling files focusd on `maxSize`, not by `timeFormat`, `RotateFile` also refers to its code.