DevOps Curriculum

Vor 20 Jahren begann der große Durchbruch der Virtualisierung. Heute sind virtuelle Server kaum noch wegzudenken, da diese eine deutlich flexiblere Nutzung der darunter liegenden Hardware erlauben. VMs bieten auch...

DevOps Curriculum

Die Elastic Compute Cloud ist ein flexibler Service, der VMs und damit zusammenhängende Komponenten wie Disks, Netzwerkgeräte, Loadbalancing, VM Images und Autoscaling bereitstellt. Der Service ist komplex und es gibt...

Nginx is capable of forwarding a unix socket to UDP backend servers. This is quite handy for load balance syslog traffic. Example nginx configuration load_module /usr/share/nginx/modules/ngx_stream_module.so; stream { upstream syslog...

server 192.0.2.10:514; server 192.0.2.11:514; server 192.0.2.12:514; } server { listen unix:/run/nginx/log.sock udp; proxy_pass syslog_server; } } Testing the connection echo "Hello Syslog!" | socat - /run/nginx/log.sock Info

...new one. That will take some time and your application should be able to serve files from both storage locations in the meantime. To do that, make store_dir aware...

...following setup allows you to start Terminator in a split view with the Rails server running in the left pane and all remaining processes running via foreman in the right...

type = Terminal parent = child1 profile = default command = env startup_cmd="bundle exec rails server" startup_attrs="-p 3000" bash [[[terminal3]]] type = Terminal parent = child1 profile = default command = 'env startup...

techblog.netflix.com

You login to a Linux server with a performance issue: what do you check in the first minute? uptime dmesg | tail vmstat 1 mpstat -P ALL 1 pidstat 1

When you have a multi-server setup, you'll be adding a new server from time to time. Before doing a full deploy, you might want to test that server...

...with is only run for servers matching {:roles=> }, but no servers matched. Instead, specify the server-under-test like this: HOSTFILTER=separate-sidekiq.makandra.de cap production deploy Capistrano is aware of this...

martin-riedl.de

...live-streaming HLS, filled with real-world examples. Using FFmpeg as a HLS streaming server (Part 1) – HLS Basics Using FFmpeg as a HLS streaming server (Part 2) – Enhanced HLS...

Using FFmpeg as a HLS streaming server (Part 3) – Multiple Bitrates Using FFmpeg as a HLS streaming server (Part 4) – Multiple Video Resolutions Using FFmpeg as a HLS streaming...

...cause Webpacker (the Rails/Webpack integration) to compile your assets. When you run a dev server While development it is recommended to boot a webpack dev server using bin/webpack-dev-server.

...server compiles once when booted. When you access your page on localhost before the initial compilation, the page may load without assets. The dev server will detect any changes to...

...with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available, but it is a useful...

When your application is running on a multi-server setup, application logs are stored per server (unless you choose a centralized logging solution). Here is a Capistrano task that connects...

...to all servers and prints logs to your terminal like this: $ cap production app:logs 00:00 app:logs 01 tail -n0 -F /var/www/your-application/shared/log/production.log | while read line; do echo "$(hostname...

...session) is running: ps -aux|grep vnc If you see Xvnc4 :17 then the server is already running. Kill this server if it is already running. vncserver -kill :17

...make sure to remove the lockfile of the VNC server you just murdered: rm -f /tmp/.X17-lock Geordi should start the server again when it needs it...

...recipe, Capistrano will fail if you deploy to a stage where none of the servers has the role the error complains about, "something" in this case. However, you can hack...

...and tries to call a method that is only available for that group of servers, you'll get another error: `foo.bar' is only run for servers matching {:roles=>:something}, but...

...generated by requests should be stored in public/system. Execute assets:precompile only on one server with Capistrano 3 If the assets directory is linked to glusterfs asset:precompile should only...

...on one of the appservers. The asset precompile is by default executed on all Servers with the role web. You can overwrite this in deploy.rb: set :assets_roles, [:assets]

If you want to perform a failover on another haproxy backend server this is the way you should do it: Gather information Via hatop Note: Please mind that the names...

...of frontends / backends / servers are only examples. Mind this when you want to use the shown CLI commands. The path to the haproxy socket may also vary. Example: We have...

jetmore.org

...package management system. This example send an email from from@example.com to to@example.com via the server mail23.example.com with the user from@example.com and password mysupersecurepasswordyouneverget for authentication and require the connection to...

$ swaks -tls --to to@example.com --from from@example.com --auth-user from@example.com --server mail23.example.com Password: mysupersecurepasswordyouneverget === Trying mail23.example.com:25... === Connected to mail23.example.com. <- 220 mail23.example.com ESMTP Exim 4.76 Mon, 04 Nov...

There is a reasonable simple way to move data between Redis servers: Simply temporarily configure the new server as a replica of the old server. To do this:

...the new Redis server can access the old server. If they are on different networks, a simple SSH tunnel will do. Connect to the new server using redis-cli.

Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso file you downloaded as image file Deselect "Simple installation" – you...

...but allows SSH, you can tunnel your e-mail connection through a trusted, intermediary server: sudo ssh -i /home/local-user/.ssh/local-user.key -L 143:mail-server.tld:143 remote-user@trusted-server.tld Explanation for the command above: | sudo | Secure...

| ssh -i /home/local-user/.ssh/local-user.key | Private half of your SSH key for the trusted server | | -L 143:mail-server.tld:143 | Forward connections to port 143 on your mail server mail-server.told to port...

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy (PFS): openssl s_client -connect makandra.com:443 -cipher ECDHE-RSA-RC4...

...Note that OpenSSL keeps the connection open if PFS is supported. In case the server does not support PFS, it looks like this: ~ > openssl s_client -connect localhost:443 -cipher...

The bin/webpack-dev-server command is not as smart as e.g. rails server, where it shows the proper fix within the error message. $ bin/webpack-dev-server yarn run v1.19.1 error Command "webpack-dev-server...

...keep the files you actually need, you should remove stale Paperclip styles from your server. This script has been used in production successfully. Use at your own risk. # Config #######################################################################

I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...

...not investigate in the 2342 tools that exist for migrating IMAP accounts from one server to another. They all suck. Try your luck with imapsync. We have no clue why...