Tag:node

  • Implementation of one click mutual trust script among multiple machines

    Time:2021-4-20

    preface In the production environment, especially between clusters, SSH keys should be configured in order to achieve secret free access between machines Mutual trust can be handled quickly by one or two machines manually. However, if there are multiple machines, it seems a little inadequate to do mutual trust manually, and there may be configuration […]

  • Programmer’s exclusive “lantern riddle” challenge, you win if you answer six questions correctly!

    Time:2021-4-20

    Before you know it, the Lantern Festival is coming on the 15th day of the first month. Apart from eating the Lantern Festival, how can you miss the lantern riddles, which is a necessary entertainment program? Everybody, look at it! It’s time to challenge programmer’s “lantern riddle” and test professional ability! 01. Do you know […]

  • Six steps of stability support: operational guide of high availability system!

    Time:2021-4-20

    Introduction: every year there is a big promotion, and everyone is familiar with the word “big promotion stability guarantee”. Although the business scenarios are different, the “routine” often leads to the same goal. The whole link voltage measurement, capacity evaluation, current limiting, emergency plans, etc. come and go, there are always so many things to […]

  • Is distributed system design so difficult to learn?

    Time:2021-4-20

    distributed system As a programmer in the 21st century, it seems that he does not have a female ticket when he has not heard of distributed system. Whether it’s going out for an interview to blow water with the interviewer, or at work with colleagues, distributed system is always your superior chip. Distributed system has […]

  • The most complete and detailed Kafka Study Notes in history!

    Time:2021-4-20

    1、 Why message system 1. Decoupling Allows you to extend or modify the processes on both sides independently, as long as you make sure they comply with the same interface constraints. 2. Redundancy: Message queue makes data persistent until they have been completely processed, which avoids the risk of data loss. In the “insert get […]

  • Hadoop core HDFS distributed file system

    Time:2021-4-20

    1. HDFS overview In the framework of Hadoop distributed system, the most important basic function is the file system This abstract class is used to represent our file system. There are many sub implementation classes under this abstract class. Which one to use depends on our specific implementation class. In our actual work, the most […]

  • Single linked list inversion? Interviewer are you sure you want to ask this?

    Time:2021-4-20

    preface: Single linked list is a common and important data structure. As time goes by, many operation algorithms for single linked list have been derived. For example, we will talk about them in this articleReverse operation of single linked list 。 The following will explain the data structure of the single linked list in detail […]

  • How to expand the dolphin DB cluster horizontally and vertically?

    Time:2021-4-20

    With the expansion of business, the amount of data continues to accumulate, the data capacity and computing power of the database system will gradually be overwhelmed, so an excellent database system must have good scalability. The data nodes in the dolphin DB cluster are integrated with computing and storage, so to improve the computing power […]

  • Redis design and implementation 4: Dictionary Dict

    Time:2021-4-19

    In redis, the dictionary is the infrastructure. Redis database data, expiration time and hash type all take the dictionary as the underlying structure. Structure of dictionary Hashtable The implementation code of hash table is as follows:dict.h/dictht The dictionary of redis is implemented in the form of hash table. typedef struct dictht { //Hash table array, […]

  • Abstract queued synchronizer (AQS) learn about the principle of JUC framework

    Time:2021-4-19

    catalog brief introduction Lock is simple and practical Main frame Principle analysis Exclusive lock AQS data structure CLH data structure Implementation steps of acquire addWaiter acquireQueued shouldParkAfterFailedAcquire parkAndCheckInterrupt cancelAcquire unparkSuccessor acquire release tryRelease Shared lock Get shared lock doAcquireShared setHeadAndPropagate doReleaseShared Release shared lock doReleaseShared tryAcquireShared tryReleaseShared summary brief introduction AQS (Abstract queued synchronizer) is […]

  • Performance tuning of spark application

    Time:2021-4-19

    Spark is a memory based distributed computing engine, which is famous for its high efficiency and stability. However, in the actual application development process, developers will encounter a variety of problems, one of which is related to performance. In this paper, the author will talk about how to improve the application performance as much as […]

  • Review the cap theory of distributed system

    Time:2021-4-19

    1. The history of cap theory In July 2000, Professor Eric brewer proposed the cap conjecture; two years later, Seth Gilbert and Nancy Lynch proved cap in theory; after that, cap theory has officially become a recognized theorem in the field of distributed computing. 2. The background and definition of cap The object of cap […]