获得徽章 0
赞了这篇文章
Rsyslog can be used to transfer local access log to another machine destination, for example, we can deploy rsyslog at a machine which has nginx running, after some config, rsyslog will transfer these logs to another log server.
展开
1
1
you can use command `go test -run TestXXX ` to run only single test function instead of the whole test suite.
评论
点赞
k8s has a kind of container named cronjob, which supports creating periodically executed tasks based on one line configuration similar to crontab that of linux.
评论
点赞
I found a very useful command that can be used to split files by lines, as follows, split -l n file_name.txt-, where n indicates the number of lines of each generated file.
评论
点赞
A quite useful network capture tool whistle, which is based on nodejs and can be easily installed on mac OS.
1
点赞
A mysql table splitting schema: assume we have n databases, with each as m tables in it. given a uid indicating an user identifier, then the table index t can be caculated by uid%(n*m), the database index x can be caculated by uid/m.
展开
2
1
when using redis cluster, keep in mind that a sorted set can not be splitted to save in multiple machines, so if your sorted set is very large to take too much memory, you should not use sorted set in this condition, change to other data structures.
展开
3
点赞
Redis compiled with 32bit can only use at most 4GB memory, but it will use less memory compared to that compiled on 64bit targets, since pointers with 32bit occupy less memory.
评论
点赞
conway's law demonstrates that the design graph of a system is similar to the architecture of its organizations.
评论
1