Docker compose for microservice automation
docker-compose
Docker compose project is the official open source project of docker, which is responsible for the rapid arrangement of docker container clusters
By writing a docker compose file, you can start / stop / update multiple services at the same time (you can define dependencies and start services in order)
Docker compose divides th ...
Posted by svivian on Sat, 05 Mar 2022 11:32:04 +0100
45 GIT classic operation scenarios, specializing in code
Reprint: https://my.oschina.net/u/4455409/blog/5474550
Git should be familiar to everyone. Skillfully using git has become a basic skill of programmers. Although there are cow X client tools such as Sourcetree at work, which makes it convenient to merge code. But job interviews and some scenes that need to show personal strength still need us t ...
Posted by ify on Sat, 05 Mar 2022 11:16:06 +0100
STL roaming vector
std::vector source code analysis
Observe the STL design from the perspective of source code, and the code is implemented as libstdc++(GCC 4.8.5)
Because we only focus on the implementation of vector, and the implementation of vector is almost all in the header file, we can use such a method to obtain relatively fresh source code
// main.cpp
#in ...
Posted by Davo on Sat, 05 Mar 2022 11:14:05 +0100
MinIO introduces deployment and springboot integration
Enter the new project team and use minio tools in file storage. Therefore, find relevant materials online and learn minio related knowledge, features, application scenarios, storage architecture and basic concepts in combination with the use of minio in the project. On this basis, actually deploy and build minio services locally and integra ...
Posted by abakash on Sat, 05 Mar 2022 10:56:44 +0100
Study notes - ES2015--22-03-05 (Symbol,for...of...,Iterator,generator,getter setter,ES2016,ES2017)
1.Symbol
Symbol is a new basic type; The main function is to define unique attribute names. This feature can also be used to protect private variables. Because the outside world cannot generate the same symbol, it cannot be accessed;
If you want to reuse this symbol, you can use the static method symbol for(value: string); The Global Registr ...
Posted by Meissa on Sat, 05 Mar 2022 10:54:29 +0100
Implementation of Mit 6.824 Lab3 KV Raft
paper address: http://nil.csail.mit.edu/6.824/2021/labs/lab-kvraft.html
preface
Before implementing Lab3, it is suggested to implement Lab3 in combination with the implementation of Lab2 and the Raft paper, that is, to build a fault-tolerant key / value storage service based on the Raft library implemented by Lab2.
start
Overall architecture
...
Posted by gazoo on Sat, 05 Mar 2022 10:53:18 +0100
Mit6.824 Lab1 MapReduce implementation
paper address: http://nil.csail.mit.edu/6.824/2021/schedule.html
MapReduce principle
Start MapReduce and cut the input file into files with a size of 16-64MB. Then start the user program on a group of multiple machines
One copy will become master and the rest will become worker The master assigns tasks to the worker (M map tasks and R reduce t ...
Posted by Fergal Andrews on Sat, 05 Mar 2022 10:52:47 +0100
MySQL data type
Transfer from Explain MySQL data types in detail , the content is slightly modified.
integer
data type
Number of bytes
Signed minimum
Signed maximum
Unsigned minimum
Unsigned maximum
TINYINT
1
-128
127
0
255
SMALLINT
2
-32768
32767
0
65535
MEDIUMINT
3
-8388608
8388607
0
16777215
INT
4
-2147483648
2147483647
0
4294967295
BIGINT
8 ...
Posted by Dogrox on Sat, 05 Mar 2022 10:33:48 +0100
Running logic of kubebuilder operator
Running logic of kubebuilder
summary
The following is kubebuilder's Architecture diagram . You can see that the outermost layer is driven by a component called Manager, which contains multiple components. The mapping relationship between gvk and informer is saved in the Cache, which is used to Cache kubernetes objects through informer. The Con ...
Posted by gevo12321 on Sat, 05 Mar 2022 10:11:55 +0100
SSM integration (they are copied and will not be configured by themselves after reading them for half a month. Here are the problems encountered in their configuration)
Construction steps
Here, the database connection pool, springmvc, mybatis and service are created separately, and then import is integrated into ApplicationContext xml
New projectGuide PackageCreate external file dB propertiesConfigure spring Dao xml: a. Associated database file b. Configure database source c. Configure bean sqlSessionFactory ...
Posted by Revlet on Sat, 05 Mar 2022 10:06:06 +0100