Skip to content

Instantly share code, notes, and snippets.

View shraddhaag's full-sized avatar
👩‍💻
Working from home

Shraddha Agrawal shraddhaag

👩‍💻
Working from home
View GitHub Profile
@shraddhaag
shraddhaag / load_balancers.md
Last active August 3, 2022 10:53
Concept snippets

Load Balancers

What?

  • Devices responsible for distributing network (Layer 4) or application traffic (Layer 7).
    • Layer 4: distributes requests of transport and network layer protocols ie UDP, TCP, IP FTP
    • Layer 7: distributes requests of application layer protocols ie HTTP
  • abstracts the fleet of servers as one big server to the outside world (in other words, POC is the load balancer instead of the server itself) or "service virtualisation"

Problem

As mentioned in #1558, users don't want be restricted by a specific project directory structure. Removing config.yaml will enable us in doing that.

Context

Purpose of config.yaml:

  1. Provide configuration key values.
  2. Get execution directory location (by validating project directory and which in return, enables us to run commands from anywhere inside the hasura project directory tree.)

Keybase proof

I hereby claim:

  • I am shraddhaag on github.
  • I am shraddhaag (https://keybase.io/shraddhaag) on keybase.
  • I have a public key ASCthM45h9jqfQTTrrYvFzfbHtxjVgR9rW7SnJzCrRyRxwo

To claim this, I am signing this object:

@shraddhaag
shraddhaag / FHP_Staging.md
Last active June 17, 2019 13:07
Fedora Happiness Packets - Staging Server

Errors encountered and changes made:

  1. Warning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead.

    Solution:

    1. Updated psycopg2 to version >=2.8 in requirements/base.txt
    2. Updated the virtualenv to reflect these changes.
  2. Error: django.db.utils.OperationalError: FATAL: Peer authentication failed for user "admin"