Original link: https://zdyxry.github.io/2022/07/18/Weekly-Issue-2022-07-17/
background
Write down the articles you read, the movies you watch, and the books you read every week.
article
Side Project cost minimization operation and maintenance
Off-the-shelf SaaS > library-based implementation > own software implementation > using new open source project additional deployment system to implement. The current SaaS is very mature, and most scenarios can be covered. It is not recommended to spend time on operation and maintenance work.
Setting the Number of Cores per CPU in a Virtual Machine
About [[vmware]] ESXi virtual machine CPU configuration instructions
- When you define the number of logical processors (vCPUs) for a VM, prefer the cores-per-socket configuration. Continue until the count exceeds the number of CPU cores on a single NUMA node on the ESXi server. Use the same logic until you exceed the amount of memory that is available on a single NUMA node of your physical ESXi server.
- Sometimes, the number of logical processors for your VM configuration is more than the number of physical CPU cores on a single NUMA node, or the amount of RAM is higher than the total amount of memory available for a single NUMA node. Consider dividing the count of logical processors (vCPUs) across the minimum number of NUMA nodes for optimal performance.
- Don’t set an odd number of vCPUs if the CPU count or amount of memory exceeds the number of CPU cores. The same applies in case memory exceeds the amount of memory for a single NUMA node on a physical server.
- Don’t create a VM that has a number of vCPUs larger than the count of physical processor cores on your physical host.
Sockets vs Cores for ESXi VMs, which is better? Part 1
Regarding the ESXi CPU configuration description, the conclusion is that the number of sockets and the number of cores has little effect on CPU performance.
- Surprised to say, at least with this testing configuration, there appears to be no impact to virtual machine performance with different cores and socket configurations . Now NUMA might get you, depending on your application workload profile, so be careful. Y-cruncher obviously performs better the more vCPUs it has, but an 8-sockets-2-cores-per-socket system is going to perform the same as a VM with 4-sockets-4-cores-per-socket and the same as 1-socket- 16-cores-per-socket since they all equal 16 vCPUs.
Better Code: Flexibility about the interface
Be as restrained and cautious as possible when exposing interfaces.
The Day You Became A Better Writer
The most critical tip is to keep it simple. Concise expressions are persuasive. A good point that can be expressed in five sentences can persuade more people than a brilliant 100-sentence tirade.
Brevity means removing redundant words. Don’t write “he’s happy” if you can just write “he’s happy”. You think the word “very” adds some effect. It doesn’t. Cut out your sentences.
There are many similarities between writing (for) humor and business writing. It also needs to be concise. The biggest difference is the choice of vocabulary. For fun, don’t say “drink” when you can use “cow drink”.
Your first sentence should grab the reader. Review the first sentence of my article. I have rewritten many times. It makes you curious, which is the key.
Write short sentences. Don’t put several ideas in one sentence. Readers are not as smart as you think.
To understand how the brain organizes thoughts. Readers can understand “the boy hit the ball” faster than “the ball was hit by the boy”. The two sentences mean the same thing, but it’s easier to understand that the subject precedes the action. All brains work this way. (Note, I didn’t say “this is how all brains work”).
A complete overview of SSL/TLS and its cryptographic system
About the introduction of SSL/TLS, there are pictures and texts.
How Google got to rolling Linux releases for Desktops
How Google switched from Ubuntu LTS to a rolling Debian-based distribution;
Spend the better part of a year dealing with upgrade conflicts and testing every two years when maintaining LTS releases;
After switching to rolling upgrade, in order to avoid internal duplication of work caused by upstream instability, ensure upstream stability by intervening in upstream work as early as possible (and can also give back to the community better);
Hotelling’s Law and Differentiation
Competitors move closer to each other to maximize market share
Mortgage is a bully to ordinary people
-
Ordinary people have no concept of numbers that exceed their daily life.
Therefore, I think housing loans are the bullying of ordinary people by the cooperation of meat eaters, banks and real estate developers. They bully them that they cannot understand too many numbers. And the long mortgage took away all the wealth that this group of ordinary to slightly stupid people could accumulate in their lifetime, but left them an old house that was very tasteless and a pity to abandon.
Then ordinary people are not at all wrong, and there are, ignorance and greed are their sins, but this is another topic.
How to Make Reviewers Love Your Big Pull Requests
Guarantee the quality of the submitted code;
clear commit msg;
Atomic commits will help you git legit.
Every commit is guaranteed to be atomic, including the full context.
Image rebase and improved remote cache support in new BuildKit
Regarding the use of --link
and examples in BUILDKIT, the build time can be greatly shortened.
[[Slack]] Introduction to remote development environment
- Pain point: Pulling code is time-consuming, the environment is not uniform, and it cannot be built in time
- Improvement: Instances are automatically scaled with AWS ASG, and developers use VSCode for remote development.
- Status quo: Development environment cost doubled; 90% switched to remote development mode; internal efficiency improved significantly.
In the product operation and maintenance work, there will be a lot of command lines, shell scripts, and command line splicing, such as kubectl blablabla | jq balblabla
, usually we will provide instructions through documentation or Wiki, but there will be some problems:
- The exposed commands are smelly and long
- Variable parameter transmission is not uniform, some support environment variables, some do not, whether the completion support depends on the command line itself
This tool provides a generic way to expose entry points uniformly
Possible problems:
- Interactive command processing?
- Command boundaries are blurry, what should be implemented in the command line and what should be placed in the appbuilder configuration?
- Writing a shell in YAML doesn’t seem like a good idea?
PROTECT YOUR DATA FROM RANSOMWARE WITH S3 OBJECT LOCK
Ransomware can be avoided by using S3 versioning and object locking.
Let’s talk about Kubernetes on the Internet
Scan for Kubernetes exposed on the Internet, most of which are exposed by EKS, AKS, and GKE.
A considerable number of K8s clusters are running versions that are no longer maintained.
Fallacies of Distributed Systems
Describes common incorrect assumptions when doing system design:
- network is reliable
- Latency is zero
- Unlimited bandwidth
- the network is safe
- Network topology does not change
- you can control everything
- Transmission cost is zero
- The network (messages) are homogeneous
A Practical Guide to Capturing Production Traffic with eBPF
Use Golang to demonstrate how eBPF crawls the required information.
https://github.com/seek-ret/ebpf-training
Is there truth to the philosophy that you should sync; sync; sync; sync?
Do you really need sync;sync;sync;
now?
Maybe it’s just an urban legend.
book shadow
“Moneyball” tells the story of the magic ball theory, and the emotion brought by sports is always very direct.
“Feminism from scratch”, the reason is that there are really many discussions on related topics recently, but I know too little about the relevant background, and I don’t have my own ideas and understanding. Sure enough, the historical background introduction brought by reading is better than scattered articles/ Podcasts are a lot better.
This article is reprinted from: https://zdyxry.github.io/2022/07/18/Weekly-Issue-2022-07-17/
This site is for inclusion only, and the copyright belongs to the original author.