Disk IO Performance Optimization-Practice

RAID Card Cache Policy Adjustment You can adjust the RAID card caching policy from No Write Cache if bad BBU to Write Cache OK if bad BBU, that is, do not turn off the cache when the battery is charging or discharging, to ensure I/O performance.However, this method has the risk of data loss and needs to be evaluated and adjusted reasonably. Det ...

Posted by dolcezza on Tue, 06 Aug 2019 10:44:00 -0700

compact Source of Hbase Source Code

In compact 1, the scheduling process of HBASE compact is introduced. This article mainly introduces the actual process of compact. First access from the chore in the above, in the compact Checker chore method in HRegionserver, we will determine whether compact is needed, as follows: protected void chore() { //Loop detection by travers ...

Posted by gizzmo on Tue, 06 Aug 2019 02:52:14 -0700

Java Learning, From Starting to Abandoning Spring MVC+Maven+Mybits Multi-database Configuration (mysql+sqlserver) AOP

There are two kinds of requirements for multi-database configuration: one is that the project is too big and the amount of visits is too high, so many applications have to distribute multiple databases to ease the pressure of accessing. The other is that two different database services should be integrated together now, even if the database is ...

Posted by darkfunkel on Mon, 05 Aug 2019 21:49:34 -0700

Environment Preparedness --- Configure tomcat (yum installation openjdk) under linux

What is tomcat? How does Tomcat work? please Reference website https://tomcat.apache.org/tomcat-9.0-doc/index.html For more information, please click on https://www.cnblogs.com/xdp-gacl/p/4097608.html Method 1: Download the tomcat installation package decompression Run. / startup.sh under bin file bin: It's about opening and changing To ...

Posted by Anti-Moronic on Mon, 05 Aug 2019 21:48:07 -0700

10 Minutes Understanding Consistency hash Algorithms

Application scenarios When we have more than 5 million tables or more, we will consider the use of sub-database sub-tables; when our system is still not satisfied with a cache server, we will use multiple cache servers, then how do we access the back table or cache server, we certainly will not use it. Loop or random, we will use the same hash ...

Posted by reeksy on Mon, 05 Aug 2019 20:48:25 -0700

Depth-first traversal, breadth-first traversal to achieve a deep copy of the object

dfs Depth-First-Search is a kind of search algorithm. It traverses the nodes of the tree along the depth of the tree and searches the branches of the tree as deep as possible. When all edges of node v have been explored, it will be traced back to the starting node on the side where node v was found. This process continues until the source node ...

Posted by A584537 on Mon, 05 Aug 2019 02:52:17 -0700

Generating html pages (NVelocity) using templates

The company's website needs some news, each news format is the same, but do not want to query every time, so want to save these news pages into static html, and then search to find this template engine, of course, other template engines can, such as: Razor, written by yourself manual replacement. And so on. NVelocity is an excellent project in ...

Posted by private_click on Sun, 04 Aug 2019 23:54:40 -0700

Three parsing libraries of xpath beautiful pyquery

These two days, I looked at three common parsing libraries used by python, wrote an essay and tidied up my thoughts. It's very delicious. If there are any mistakes, you are welcome to correct them at any time. (conme on....) Crawling web data usually goes through three steps: obtaining information - > extracting information - > saving in ...

Posted by BLaZuRE on Sun, 04 Aug 2019 20:57:02 -0700

Third-party library production for Egret

Reference resources: Use of third-party libraries   Goal: The goal is to build a third-party library of existing game frameworks and reduce compilation time.Do not want others to see the source code, reduce readability.   Create a third-party library In any folder, I create a test folder here, shift+right-click, open the command line win ...

Posted by GoodGuy201 on Sun, 04 Aug 2019 14:41:00 -0700

[HDU Multi-School Fourth Scene 2019][HDU 6617][D. Enveloping Convex]

Title link: http://acm.hdu.edu.cn/showproblem.php?pid=6617 Main idea of the topic: Give a convex hull \(P\), find the smallest polygon that is similar to \(P\) and parallel to its corresponding edge, so that \(m\) points \(q_i\) given by the topic are all contained by the polygon, and output the smallest similarity ratio Question: The dichoto ...

Posted by Eddie Fisher on Sun, 04 Aug 2019 12:47:04 -0700