Friday 4 December 2020

Interview questions: 2020-12

  • Terraform
    • provider vs provisioner
  • Load balancing
    • Network Load Balancer vs Application Load Balancer 
  • Networking
    • Layer 1 vs Layer 4
      • haproxy uses which layer?
  • Database
    • Mysql
      • myisamchk
        • what does it do?
    • Open source databases: MySQL, Postgres, Mongodb

Tuesday 9 June 2020

iftop config

~/.iftoprc

interface: eth0 # The interface to monitor
log-scale: no # Use a logarithmic scale for bar graphs.
max-bandwidth: 2M # Fixes the maximum for the bar graph scale to bw, e.g. "10M". In bits
dns-resolution: yes # Controls reverse lookup of IP addresses.
port-display: on # Controls display of port numbers.
port-resolution: yes # Controls conversion of port numbers to service names.

Monday 25 May 2020

git: delete local and remote branch

git branch -d feature/666
git push origin --delete feature/666

Sunday 24 May 2020

k8s ssl cert loading as secret

kubectl --cert=/tmp/tls.crt --key=/tmp/tls.key create secret tls tls-wc-ingress

Tuesday 12 February 2019

Connection with Jedis to passworded, "in-transit" encrypted AWS Elasticache Redis instance


import redis.clients.jedis.Jedis;

public class RedisStringJava {
   public static void main(String[] args) {
      Jedis jedis = new Jedis("master.redis-poc-single-01.eeeeee.use1.cache.amazonaws.com", 6379, true);
      jedis.auth("mypassword");
      System.out.println("Connection to server sucessfully");
      jedis.set("tutorial-name", "Redis tutorialz");
      // Get the stored data and print it
      System.out.println("Stored string in redis:: "+ jedis.get("tutorial-name"));
   }
}

Wednesday 6 February 2019

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...