Kubernetes 1.5 Source Analysis (II) Resource Registration of apiServer
Source version
Kubernetes v1.5.0
brief introduction
There are various resources in k8s, such as Pod, Service, RC, namespaces and so on. In fact, the user operates on a large number of resources. But these resources are not messy, they are organized in the way of Group Version. Each resource belongs to a group, and there are versions of resource ...
Posted by sqlmc on Fri, 19 Apr 2019 19:30:34 -0700
go task scheduling 2 (cron call of linux)
cron format:Time Sharing Day, Month and Week
Execute every five minutes: / 5 * echo Hello > / TMP / X. log
Execute every 1-5 minutes: 1-5 echo Hello >/tmp/x.log
Execute once every day at 10 o'clock and 22 o'clock: 0.10,22 * echo Hello >/tmp/x.log
Execute every 1-5 minutes: 1-5 echo Hello >/tmp/x.log
Parse(): parsing and checking ...
Posted by PoOP on Fri, 19 Apr 2019 18:00:33 -0700
gRPC Service Discovery & load balancing
gRPC Service Discovery & Load Balancing
To build high-availability and high-performance communication services, service registration and discovery, load balancing and fault-tolerant processing are usually used. According to the location of load balancing implementation, there are usually three solutions:
1. Centralized LB (Proxy Model)
The ...
Posted by onlinegamesnz on Thu, 18 Apr 2019 02:21:33 -0700
The use of google's grpc in golang
GRPC is a high-performance, cross-language RPC framework of google open source. It is based on HTTP2 protocol, protobuf 3.x and Netty 4.x.
I wrote a previous article on the use of the rpc package of the golang standard library, and this article goes on to talk about google's grpc.
introduce
In gRPC, client applications can directly call the m ...
Posted by IlikeTheWeb on Sun, 14 Apr 2019 20:15:33 -0700
Go 1.8rc3 source code learning: token
Preface
token package contains data structures and methods related to golang lexical analysis. The source code is located in <go-src>/src/go/token.
token.go
The comments in the source code are great!
Token type
Token is the set of lexical tokens of the Go programming language
type Token int
tokens
The list of tokens(token ids)
const (
...
Posted by Andrew W Peace on Sat, 06 Apr 2019 20:27:31 -0700
[uber-zap/part3] custom recorder
Explain
A previous translation of a tutorial (without backing up the original address, the ladder was sealed). Add the original address after finding it
text
The field coder provided by zap is not necessarily suitable for its own needs, such as: the output of log records is expected to be similar to syslog or other common log formats; the time ...
Posted by jsantama on Mon, 01 Apr 2019 02:15:29 -0700
How to Open SSH Service on Port 80 of Web Server
The network port multiplexing discussed in this paper does not refer to Socket Bind multiplexing with SO_REUSEADDR option in network programming. It is more like a port forwarding tool with a specific routing function, implemented in the application layer.
background
The firewall in my network only opens one port, but I hope to provide a variet ...
Posted by jon23d on Thu, 21 Mar 2019 03:54:52 -0700
Usage of Go cron Timing Task
What is cron?
cron means: to plan tasks, to put it plainly, is to schedule tasks. I have an appointment with the system. It's as simple as running a task at a few minutes or seconds or every few minutes.
cron expression
Cron expression is a good thing. It can be used not only in Java quartZ, but also in Go. I haven't used cron in Linux, but the ...
Posted by liquidmind on Wed, 20 Mar 2019 09:51:28 -0700
Bitcoin Development Course in Go Language Based on Mixin Network: Receiving and Sending Bitcoins with Mixin Messenger Robot
stay In the last tutorial We created a robot that automatically responds to messages. When a user sends a message "Hello,World!", the robot automatically responds to the same message!
After learning according to this tutorial, your robot will accept the encrypted currency sent by the user, and then immediately return to the user.The c ...
Posted by mmarif4u on Sun, 03 Mar 2019 21:09:22 -0800
Using Envoy as Sidecar Proxy's Microservice Mode-5.rate limiter
This blog is part of an in-depth study of Envoy Proxy and Istio.io and how it can achieve a more elegant way to connect and manage micro services.
This is the idea for the next few sections (links will be updated at publication time):
Circuit Breakers (Part I)
Retry/timeout (Part II)
Distributed Tracking (Part 3)
Prometheus Index Collection (P ...
Posted by Frozen Kiwi on Fri, 01 Mar 2019 06:06:21 -0800