Read configuration files using Go
brief introduction
Read the configuration using viper
Creating command-line tools using Cobra
Thermal overload
summary
The current part of the code
brief introduction
In the last practice, a basic restful api server was launched.
There were many hard-coded attributes in the code at that time, so this time we would try to read them from the co ...
Posted by Sealr0x on Thu, 12 Sep 2019 04:06:25 -0700
Construction of Go 1.13 Private Agent Service
Original address: Construction of Go 1.13 Private Agent Service.
Setting GOPROXY can only specify one proxy service address prior to the release of Go version 1.13.After entering Go 1.13, GOPROXY supports multi-proxy settings, which can be separated.The following:
export GOPROXY=https://proxy.golang.org,direct
According to the official document ...
Posted by webpoet on Mon, 09 Sep 2019 18:23:23 -0700
[Spring Cloud] Spring Cloud Config Implements Distributed Configuration Center
Spring Cloud Config Implements Distributed Configuration Center
1. Distributed Configuration Center
In distributed systems, there are a large number of service applications, and each application needs a corresponding configuration file to help complete the initialization and operation of the service environment.As a result, a large number of se ...
Posted by POGRAN on Sun, 08 Sep 2019 19:44:13 -0700
Spring cloud registry eureka
brief introduction
Spring Cloud is currently one of the mainstream frameworks for developing micro services. We all know that the most basic and core module in micro services architecture is service registration and discovery.
In Spring Cloud, we c ...
Posted by expostfacto on Sun, 08 Sep 2019 02:25:17 -0700
The node service starts from egg on the back end of the full stack project
1 technology stack
egg+node Project Online Address http://47.100.30.67:7001 Project git address https://github.com/jiqingpeng/mars/tree/master/fe/egg-example
2 Quick Start
egg officially recommends that scaffolding be used directly and that projects can be generated quickly with a few simple instructions (npm > = 6.1.0):
mkdir egg-exam ...
Posted by jungalist on Wed, 04 Sep 2019 22:42:00 -0700
_Quick Start for Git
Git is divided into 3 sections, workspace, staging area, local library(ix) Resources
Additional information (concise): https://www.yiibai.com/git
Other data (more complex): https://www.liaoxuefeng.com/w...
Git Quick Start: https://www.bilibili.com/vide...
Git Advances: https://www.bilibili.com/vide...
Installation
Official download: https:// ...
Posted by Rodney H. on Tue, 03 Sep 2019 15:07:52 -0700
Case Analysis of SWT Restart
Strongly Recommend Articles: Welcome to CollectionAndroid Dry Goods Sharing
Read for five minutes, ten o'clock a day, and study with you for life. Here's Android, a programmer.
This article mainly introduces some knowledge points in Android development. By reading this article, you will gain the following contents:
1.MTK AEE Log Analysis Too ...
Posted by discomatt on Tue, 03 Sep 2019 02:23:20 -0700
Micro Services (Sprcloud Configuration Center)
1: Understanding bootstrap.yaml
It will be loaded before the application, and if it has the same name attribute as the application, the first boot will be overwritten.
2: The configuration center and our registry must have a start-up first.
3: spring Configuration and Environmentalization
In Spring 3.0-)
<beans profile ="test"> &l ...
Posted by cashflowtips on Thu, 29 Aug 2019 21:51:42 -0700
How to create a blog project
1. First pull the skeleton project as the basis, and the file is named myprogect.
git clone https://github.com/huntlabs/hunt-skeleton.git myproject
cd myproject
dub run -v
2. Modify the database configuration in the application.conf file under congig in the project
hunt.database.default.driver=mysql
hunt.database.default.host=127.0.0.1
hunt.dat ...
Posted by rich___ on Thu, 29 Aug 2019 21:05:55 -0700
Monitor containers, apiserver s, and auto-discovery and monitoring services with prometheus
Use the built-in cAdvisor monitoring containerCAdvisor is already built into the kubelet component, so we do not need to install it separately. The data path of cAdvisor is / api/v1/nodes/<node>/proxy/metrics1. Add job s, update prometheus configuration
- job_name: 'kubernetes-cadvisor'
kubernetes_sd_configs:
- role: node
scheme: h ...
Posted by jeffkee on Mon, 26 Aug 2019 18:28:16 -0700