Category Archives: Administration
What is a Service Mesh? Introductory article from NginX
The original is here — https://www.nginx.com/blog/what-is-a-service-mesh/ Another small introductory article on Istio you can find here. A service mesh is a configurable infrastructure layer for a microservices application. It makes communication between service instances flexible, reliable, and fast. The mesh provides service discovery, load balancing, encryption, authentication and authorization, support for the circuit breaker pattern, and other …
Istio — platform for managing and connecting your microservices. Service mesh
https://istio.io/docs/concepts/what-is-istio/overview.html It’s flexible and modular service mesh made by Google, IBM and Lyft. It is a platform for managing your kubernetes system. It’s responsible traffic management, observability, policy enforcement, service identity and security. It provides features like service discovery, load balancing, A/B experiments, canary deployments, circuit breaking and health checks.
Kubectl helpful commands
k8s cheatsheet. Get all pods by label $ kubectl —kubeconfig <config file> get po -lapp=<pod name without hash> -Lversion,cfg,infra-cfg Exec into the pod $ kubectl —kubeconfig <config file> exec -it <pod name> sh Port forwarding $ kubectl —kubeconfig <config file> port-forward <pod name> <local port>:<remote port> Getting logs $ kubectl —kubeconfig <config file> logs <pod …
Publish subdirectory of a project to gh-pages
If your build is located at ./build, then do this: git subtree push —prefix build origin gh-pages More details here — https://gist.github.com/cobyism/4730490
docker-compose for starting aerospike and memcache
Place this config wherever you like (in your project) — for instance, ~/myproj/docker/docker-compose.yml: version: «2» services: #aerspike as: image: aerospike/aerospike-server volumes: — ./aerospike/etc:/opt/aerospike/etc ports: — 3000:3000 command: [asd, —config-file, /opt/aerospike/etc/docker.conf] memcached: image: memcached ports: — 11211:11211 volumes: #volume for etcd dicovery-data: driver: local #volume for database db-data: driver: local And this config for aerospike should …
How to count resource usage in linux
ps -eo pid,ppid,cmd,%mem,%cpu —sort=-%mem | head -n 5 It will output something like this: PID PPID CMD %MEM %CPU 2591 2113 /usr/lib/firefox/firefox 7.3 43.5 2549 2520 /usr/lib/virtualbox/Virtual 3.4 8.2 2288 1 /home/gacanepa/.dropbox-dis 1.4 0.3 1889 1543 c:\TeamViewer\TeamViewer.ex 1.0 0.2 2113 1801 /usr/bin/cinnamon 0.9 3.5
Запустить memcached в докере
Под мак. docker pull memcached:alpine docker run —name memcached -d —restart=always —publish 11211:11211 memcached:alpine telnet localhost 11211 ctrl+] docker ps docker stop <id> https://hub.docker.com/_/memcached/ https://github.com/sameersbn/docker-memcached Вдогонку — как смотреть статистику в мемкэше. telnet localhost 11211 > stats > stats items > set key 0 900 4 data > get key https://blog.elijaa.org/2010/05/21/memcached-telnet-command-summary/ http://www.alphadevx.com/a/90-Accessing-Memcached-from-the-command-line
Дешёвый регистратор доменов
Дешёвый регистратор доменов в зоне RU — http://atname.ru/
Ограничение скорости интернет в Mac OS
Shaper (шейпер) интернета для мака. Зайти в Apple’s Download Center и поискать «Hardware IO». Скачать, там найти Network Link Conditioner. Вот как с ним работать — http://nshipster.com/network-link-conditioner/.
Хорошая книга по сетям
«High Performance Browser Networking by Ilya Grigorik»: Бумажная версия Хорошая онлайн-версия «HTTP/2: A New Excerpt from High Performance Browser Networking by Ilya Grigorik»: Электронная оффлайн-версия