Tag:node

  • Several routing algorithms for distributed dB / redis are illustrated

    Time:2021-10-22

    background As the application becomes larger and larger, the amount of data becomes more and more. Neither the single database, single table nor single redis of MySQL database can meet the high concurrent read-write operations and the storage function of large amount of data. Therefore, we are familiar with itSub database and sub table。 Vertical […]

  • What are the current security issues of the Internet of things?

    Time:2021-10-22

    According to the contents of the white paper on the Internet of things (2020) published by China Academy of information and communications, there are several security problems of the Internet of things at present: First, China’s Internet of things security policy layout is still insufficient, the Internet of things security standard system has not been […]

  • 7.4 deploy WordPress through service in swarm cluster

    Time:2021-10-22

    Create an overlay driven network docker network create -d overlay wordpress [[email protected] ~]$ docker network ls NETWORK ID NAME DRIVER SCOPE q3rp3i79eud7 wordpress overlay swarm Create MySQL container docker service create –name mysql –env MYSQL_ROOT_PASSWORD=root –env MYSQL_DATABASE=wordpress –network wordpress –mount type=volume,source=mysql-data,destination=/var/lib/mysql mysql Create WordPress docker service create –name wordpress -p 80:80 –env WORDPRESS_DB_PASSWORD=root –env WORDPRESS_DB_HOST=mysql […]

  • Talk about microservice observation in detail | from monitoring to observability, where do we finally go?

    Time:2021-10-21

    Author Liu Haoyang​ Reading guide: in order to make you better understand the design and implementation of APM system in MSP, we decided to write aA series of articles on micro service observation, in-depth product, architecture design and basic technology of APM system. This is the first article in this series, which mainly shares some […]

  • Data structure — circular linked list

    Time:2021-10-21

    A go language implementation of ring linked list package main import “fmt” //Defines the node structure of a ring linked list type circleSingleLink struct { id int name string next *circleSingleLink } //Insert node into ring linked list func Insert(head, newnode *circleSingleLink) { //Determine whether it is an empty linked list if head.next == nil{ […]

  • 7.5 routing mesh for communication between cluster services

    Time:2021-10-21

    Create overlay network docker network create -d overlay swarm-overlay Create whoamI container Jwilder / whoamI image supports obtaining the host’s hostname through HTTP request docker service create –name whoami -p 8000:8000 –network swarm-overlay -d jwilder/whoami Create busybox container docker service create –name busybox –network swarm-overlay -d busybox /bin/sh -c “while true;do sleep 3600;done” View services […]

  • Redis source code – jump table

    Time:2021-10-21

    preface A skip list is an ordered data structureOrdered linked listIt solves the efficiency problem of finding a value in the ordered linked list. Jump table supports averageO(logn)In most cases, the efficiency of node search with the worst o (n) complexity is comparable to that of balanced tree, and the implementation is simpler. Redis uses […]

  • Problems caused by Mongo flowcontrol

    Time:2021-10-20

    mongo flowcontrol When Mongo replica sets are deployed, Mongo writes to the default write priority. If the slave node lags too far behind or there are hung replicas, and the number of replicas is less than half of the replica set data, Mongo will actively appear the flow control. View the flowcontrol configuration of the […]

  • React source code analysis 9. Diff algorithm

    Time:2021-10-20

    React source code analysis 9. Diff algorithm Video course (efficient learning): enter the course Course Directory: 1. Introduction and interview questions 2. Design concept of react 3. React source code architecture 4. Source directory structure and debugging 5. JSX & Core API 6. Legacy and concurrent mode entry functions 7. Fiber architecture 8. Render stage […]

  • [PHP data structure] related logical operations of linked list

    Time:2021-10-20

    The operation of linked list is much more complex than that of sequential list (array). Because PHP has indeed solved many array operation problems for us, we can easily operate arrays without defining many logical operations for arrays. For example, in C, arrays are limited in length, which we won’t consider in PHP. If you […]

  • Jenkins multi node Python environment isolation (Windows)

    Time:2021-10-20

    Jenkins multi node Python environment isolation (Windows) In the Jenkins construction process, multiple Jenkins nodes need to be used for concurrent construction Due to condition constraints, there is only one windows host, so multiple Jenkins nodes are deployed on this host Pip is used in shell commands to install dependencies. When multiple builds are concurrent, […]

  • 7.6 progress load balancing of routing mesh

    Time:2021-10-20

    function Load balancing for external access The service port is exposed to each swarm node Internal load balancing through IPVS Port exposure #For the service list, pay attention to the * sign in port forwarding ` *: 8000 – > 8000 / TCP ‘ [[email protected] ~]$ docker service ls ID NAME MODE REPLICAS IMAGE PORTS […]