ECONNRESET when making thousands requests
In situation doing thousands of http requests, it is easy to get error ECONNRESET, for example :
1 | require('isomorphic-fetch'); |
In situation doing thousands of http requests, it is easy to get error ECONNRESET, for example :
1 | require('isomorphic-fetch'); |
To find ports status on windows, there is a default Windows GUI - Resource Monitor or you could use netstat via command prompt.
1 | -- Get current datetime |
Today When I connect to Windows through Remote Desktop Viewer got error connecting to host prompt.
After searching the solution is to remove the server I’m having issue in $home/.freerdp/known_hosts and reconnecting again.
1 | [sing@study ~]$ vi ~/.freerdp/known_hosts |
1 | static readonly HttpClient Client = new HttpClient(); |
1 | static readonly HttpClient Client = new HttpClient(); |
This sheet is to record abbreviation in my daily work as a software engineer.
| Abbreviation | Full name | Explain |
|---|---|---|
| CDC | Change data capture | Use to sync one db data change to another db |
| MPLS | Multi-Protocol Label Switching | Link site to site network like both in same network |
| IDC | Internet Data Center | Buildings where we put servers |
| REST | REpresentational State Transfer | Architectural style defines a set of constraints on HTTP |
| CNAME | Canonical Name | A DNS record to point a/b/c domain to d domain so you don’t have to add A record in a/b/c |
| ACL | Access Control List | An ACL specifies which users or system processes are granted access to objects |
workspaceJenkins.xml, default 8080config.xmlCreate / Start Jenkins service in cmd with administrator mode:
1 | sc create <jenkins-service-name> <path/to/jenkins.exe> |
View migrated jenkins in your browser with port specify above, default http://localhost:8080
If you want to understand how Redux work, createStore(reducer) is the core function you should know and try to implement yourself. Here is a basic example of Redux, don’t worry I will break it down later :
React.PureComponent, it implement shouldComponentUpdate() by shallow compare prop and state, it is powerful with Immutable.js.highlight updates in dev tool to find any unnecessary updates.Use Production build, for example with webpack you need following config:
1 | new webpack.DefinePlugin({ |
Make sure the server has internet access or you will have to download and upload packages manually. If the server doesn’t, I recommend CCProxy to grant temporary internet access.
1 | wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.rpm |
Download and install
1 | wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.3.rpm |
Start service
1 | # Auto start elasticsearch when computer start |
Verify Elastic search is running
1 | curl http://localhost:9200 |
You could check log files under /var/log/elasticsearch/
Reference : https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html
Download and install
1 | wget https://artifacts.elastic.co/downloads/kibana/kibana-6.2.3-x86_64.rpm |
Modify kibana config
1 | vi /etc/kibana/kibana.yml |
Start service
1 | systemctl daemon-reload |
Verify installation
1 | curl localhost:5601 |
You can check log file under /var/log/kibana/
Reference : https://www.elastic.co/guide/en/kibana/current/rpm.html
Download and install
1 | wget https://artifacts.elastic.co/downloads/logstash/logstash-6.2.3.rpm |
Modify logstash.yml to enable auto reload config
1 | vi /etc/logstash/logstash.yml |
Add first logstash config
1 | cd /etc/logstash/conf.d/ |
Start service
1 | systemctl daemon-reload |
Verify installation
1 | telnet 127.0.0.1 5044 |
You could check log file under /var/log/logstash/
Reference : https://www.elastic.co/guide/en/logstash/current/installing-logstash.html