4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
7 results tagged elb x
  • thumbnail
    Django ALLOWED_HOSTS for Amazon ELB - Stack Overflow

    Another simple solution would be to write a custom MIDDLEWARE which will give the response to ELB before the ALLOWED_HOSTS is checked. So now you don't have to load ALLOWED_HOSTS dynamically.

    The middleware can be as simple as:

    project/app/middleware.py

    from django.http import HttpResponse
    from django.utils.deprecation import MiddlewareMixin

    class HealthCheckMiddleware(MiddlewareMixin):
    def process_request(self, request):
    if request.META["PATH_INFO"] == "/ping/":
    return HttpResponse("pong")

    settings.py

    MIDDLEWARE = [
    'corsheaders.middleware.CorsMiddleware',
    'app.middleware.HealthCheckMiddleware',
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    ...
    ]

    Django Middleware reference https://docs.djangoproject.com/en/dev/topics/http/middleware/

    June 10, 2020 at 4:54:02 PM GMT+2 - permalink - archive.org - https://stackoverflow.com/questions/35858040/django-allowed-hosts-for-amazon-elb
    alb aws django elb
  • Services - Kubernetes

    How to configure LoadBalancer (ELB) populated by k8s in aws (eks)

    February 9, 2019 at 12:12:15 PM GMT+1 - permalink - archive.org - https://kubernetes.io/docs/concepts/services-networking/service/#elb-access-logs-on-aws
    elb k8s log
  • thumbnail
    Redirect HTTP Traffic to HTTPS Using ELB

    Un peu fatiguant de ne pas pouvoir configurer ce genre de chose sur l'ELB directement...

    Redirect http call to https

    RewriteEngine On
    RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
    RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]

    September 18, 2017 at 2:36:53 PM GMT+2 * - permalink - archive.org - https://aws.amazon.com/premiumsupport/knowledge-center/redirect-http-https-elb/
    apache elb https rewrite
  • Configure Connection Draining for Your Classic Load Balancer - Elastic Load Balancing
    February 24, 2017 at 11:57:55 AM GMT+1 - permalink - archive.org - https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html
    aws elb
  • Configure the Idle Connection Timeout for Your Classic Load Balancer - Elastic Load Balancing
    February 24, 2017 at 11:57:42 AM GMT+1 - permalink - archive.org - https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html
    aws elb
  • Note: AWS Beanstalk et cron

    On peut avoir besoin de faire tourner un ou plusieurs cron dans un environnement Beanstalk composé de X instances
    Etant donné que toute les instances sont configurées de la meme manière, si on rajoute le cron dans la config, il sera éxecuté sur toutes les instances

    Une solution serait de determiner si on est le "runnner" ou non avant de lancer le cron

    Pour que toutes les instances sachent qui est le runner, on peut imaginer un système comme celui ci :

    • on interroge l'ELB avec les API pour avoir ses backends
    • on trie cette liste de backend
    • le runner est le premier de cette liste
    • si notre ip est égale à celle du runner, on lance le cron

    ça a l'avantage de fonctionner quel que soit le nombre d'instances et ne pas stocker un état (on utilise les infos de l'ELB)

    Et si on ne veut pas faire tourner tous les crons sur le runner, on pourrait déterminer runnner1 runnner2 runner3 etc suivant l'ordre et faire tourner certains crons si on est runner1 ou bien runner2

    December 9, 2016 at 11:13:10 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?fmh_YQ
    aws beanstalk cron elb
  • Configuring Websockets behind an AWS ELB | jverkamp.com | John-Paul Verkamp
    November 7, 2016 at 9:02:53 AM GMT+1 - permalink - archive.org - https://blog.jverkamp.com/2015/07/20/configuring-websockets-behind-an-aws-elb/
    aws elb ws
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation