k8s resource limit

Note: the following is only a fragment of resource restriction in yaml file, not a complete yaml file, but only a sketch of its own. 1. Restrictions on pod resources: [root@master limit]# vim cgroup-pod.yaml spec: containers: - name: xxx image: xxx ports: - protocol: TCP containerPort: 80 resources: limits: ...

Posted by nullified on Wed, 27 Nov 2019 15:45:49 +0100

Vue responsive Principle & how to realize MVVM bidirectional binding

Preface As we all know, the response of Vue.js is to use the data hijacking + publish subscribe mode. However, it means that as a Xiaobai, he always feels that he can answer it, and finally stops talking and ends up failing. As one of the classic interview questions, in most cases, he can only answer the question of "Object.defineProperty. ...

Posted by samba_bal on Fri, 15 Nov 2019 10:10:21 +0100

34 tips that React development must know [nearly 1W words]

Preface React is one of the three front-end frameworks and a skill in interview and development.This paper summarizes some skills and techniques of React development from the actual development, which are suitable for students who are new to React or have some project experience.Long text in thousands of words, recommended collection. Sequent ...

Posted by satya61229 on Wed, 13 Nov 2019 03:12:26 +0100

Normal texture practice

The following is from the introduction to unity shader Calculate light in tangent space: The light direction and the viewing angle direction are all converted to tangent space for calculation. To calculate light in world space: The normal direction obtained from the normal texture is converted to the world space, and then c ...

Posted by shelluk on Sun, 10 Nov 2019 19:46:03 +0100

Tymeleaf common syntax: template fragment

Many pages in the system have a lot of public content, such as menus, footers, etc., which can be extracted and placed in a public page called "template fragment", and other pages can refer to this. Template snippet content. I. definition of template fragment It can be an html tag or a fragment can be defined using the th:fragment a ...

Posted by flexxall on Sat, 19 Oct 2019 22:46:14 +0200

React16 source code analysis - update process rendering stage 3

Welcome to read the React source code analysis series:React16 source code analysis (I) - illustration of Fiber architectureReact16 source code analysis (2) - create updateReact16 source code analysis (III) - ExpirationTimeReact16 source code analysis (IV) - SchedulerReact16 source code analysis (V) - update process rendering stage 1React16 sour ...

Posted by sholtzrevtek on Fri, 18 Oct 2019 18:41:10 +0200

dpkt package official document parsing Sinicization - -- HTTP Request Example(tcp layer [tcp.data carrier http header request and other information]

Links to the original text: https://dpkt.readthedocs.io/en/latest/print_http_requests.html dpkt package official document parsing Sinicization - -- HTTP Request Example(tcp layer [tcp.data carrier http header request and other information] P ...

Posted by codeman on Fri, 04 Oct 2019 08:34:50 +0200

Problem Solving Techniques for Error-prone Point Analysis by PAT 1078 String Compression and Decompression C Language

There are many ways to compress text. Here we only consider the simplest one: to represent a continuous fragment of the same character by the number of characters contained in the character and fragment. For example, ccccc is represented by 5c. If the character is not duplicated, it is output as it i ...

Posted by slevytam on Tue, 01 Oct 2019 21:17:31 +0200

js array method collation 06

Array.prototype.concat() [ES3] (concat() method combines two or more arrays. This method does not change the existing array, but returns the new array. Syntax: var new_array = old_array.concat(value1[,value2[, ...[,valueN]]]) Example: var arr1=['a','b','c']; var arr2=['d','e','f']; var arr3=arr1.con ...

Posted by KevMull on Thu, 26 Sep 2019 14:39:00 +0200

Reds Notes on Mosquitoes - Actual Chapter

Redis Fragmentation Technology requirement analysis If all data is saved in a redis, if the server is damaged, all services will be affected. Using single Redis memory settings generally does not exceed 1G. However, some business data is very large. If memory is not modified, data cannot be stored. ...

Posted by jestaji on Sat, 21 Sep 2019 13:12:52 +0200