Config HAProxy community edition Active/Active cluster (Solution)
The first, install keepalived to manage Virtual IP. My concept is use 2 Virtual IPs bind on 2 Nodes. Node 1 is MASTER on Virtual IP 1 and BACKUP on Virtual IP 2, Node 2 is MASTER on Virtual IP 2 and BACKUP on Virtual IP 1. DNS Round-robin to 2 Public IPs, every Public…
Use Child_Process to pull code?
Yes, that is a simple opinion. Do it with one simple file: Now, you can write an API to call http://localhost:3000 to pull 3 project. You can `composer update` or something more.
Convert Interface in Typescript
I have one Interface: Convert fields in the interface to required The desired result is as follows: Solution: Convert fields in the interface to optional The desired result is as follows: Solution: Convert some fields by name instead of all The desired result is as follows: Solution: Convert fields in the interface to other value…