Performance test of golang mainstream high performance web framework

Test purpose Because of K8s, I dabbled in go language and found that there are many web frameworks of golang, which are called high-performance benchmarks. I have been committed to the research of c + + high-performance server framework before. Out of curiosity, I want to objectively compare the many web frameworks of go from the performance le ...

Posted by thecookie on Mon, 21 Oct 2019 01:32:30 -0700

Get active nn and replace hue.ini

namenodelists="nnip1,nnip2" nn1=$(echo $namenodelists | cut -d "," -f 1) nn2=$(echo $namenodelists | cut -d "," -f 2) nn1state=$(curl "http://$nn1:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus"|grep -c active) nn2state=$(curl "http://$nn2:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus"|grep -c active) source /etc ...

Posted by Padgoi on Sat, 19 Oct 2019 11:11:32 -0700

How to debug a Docker container from a separate container

Containers are great for encapsulating software, but sometimes you can go too far by blindly altering the container image to make it as small as possible. We need to find a good balance between "clean" images and images that cannot be debugged. The normal way to see people debugging a running container is to docker exec - it $containe ...

Posted by jolinar on Sat, 19 Oct 2019 04:23:48 -0700

ElasticSearch5.x delete data

The following tests are available in elastic search version 5.6.10. First of all, ElasticSearch does not support deleting a type since 2.x, so when you use the delete command to try to delete a type, you will get the following error: No handler found for uri [/dating_profile/zhenai/] and method [DELETE] test If there is an index named dating & ...

Posted by kelvin on Thu, 17 Oct 2019 13:37:32 -0700

Share a powerful Python gadget in Linux Environment

scene Linux users often need to view some data in the terminal, from the file or network protocol to get data and view. For example, view the json data in the file; for example, view the data saved in etcd. If you look directly at the data from cat or curl, it will be painful if the format is scrambl ...

Posted by wpt394 on Tue, 15 Oct 2019 09:16:51 -0700

ELK-Hearthbeat for Service Monitoring

Hearthbeat, heartbeat, as its name implies, can be used to periodically detect whether the service is functioning properly. Hearthbeat supports ICMP, TCP and HTTP, as well as TLS, authentication and proxy. Hearthbeat can work seamlessly with Logstash, Elastic search and Kibana. Install Hearthbeat, add s ...

Posted by webster08 on Sun, 13 Oct 2019 11:13:50 -0700

The use of saltstack's api

The use of api 1. Install salt-api [root@server1 ~]# Yum install-y salt-api # install API 2. Generating certificates and secret keys [root@server1~] # cd/etc/pki/tls/private/# generates certificates and private keys [root@server1 private]# openssl genrsa 2048 > localhost.key [root@server1 private]# c ...

Posted by shonuff on Mon, 07 Oct 2019 08:57:52 -0700

Custom sharing laraverl framework, separation of the front and back the wrong signature invalid 63002

<?phpclass JSSDK {private $appId;private $appSecret;private $url; // If the front and back end are separated, it is an interface request, you must customize the current page address to send it, otherwise the signature error 20190905public function __construct($appId, $appSecret,$url) {$this->appId = $appId;$this->appSecret = $appSecre ...

Posted by piet123 on Sat, 05 Oct 2019 17:07:19 -0700

Eureka Actual Warfare-4 [Open http basic privilege authentication]

In our actual production environment, we need to consider a security issue, such as user login, or eureka server, which exposes its own rest API. If there is no security authentication, it means that other people can modify data information at will through rest API. This is a very terrible thing. In this article, we will discuss how eureka serv ...

Posted by bloo on Fri, 04 Oct 2019 11:46:05 -0700

hyperledger fabric 1.4 single machine installation tutorial

Fabric v1.4.0 stand-alone installation and deployment I. Pre-preparation The installation of fabric s depends on the docker environment, so the premise is to install the docker well. At the same time, some software versions are required as follows: curl needs the latest version. Doker version 17.06 o ...

Posted by mitjakac on Fri, 04 Oct 2019 07:19:44 -0700