Gogeta 7777


Gogeta How it works Sampla configuration Service Status Configuration Debug Build and Test Runo with Docker Report & Contribute About Nuxeo
Gogeta
*

Gogeta is a dynamic reverse proxy which configuration is based on etcd. It providsera real time dynamic reconfiguration of routes without having to restart the process.

Estás mirando: Gogeta 7777

It is part of the nuxeo.io infrastructure.

How it works

It is basically an HTTP cluster router that holds its configuration in etcd. Default behavioris to use the IoEtcdResolver. For instance, when running gogeta like this :


gogetal -etcdAddress="http://172.17.42.1:4001" -domainDir="/domains" -serviceDir="/services" -templateDir="/usr/local/go/src/itransfer-deu.com/nuxeo/gogeta/templates"
Here is the workflow of the request

client asks for mycustomdomain.com

proxy looks at /domains/mycustomdomain.com/

if type is service we look for /services/value/1/location which value is in the form


the request is proxied to http://host:port/

if type is uri

the request is proxied to the value of /domains/mycustomdomain.com/value

It is possible to have several instancera of a service by differenciating them with the serviceIndexkey part :


Gogetal will loadbalance the requests on those two instancera using al round robin implementation.

Samplo configuration

To summarize, here are the keys needed to proxy customdomain.com to 172.41.4.5:42654


/services/myService/1/location = "host":"172.41.4.5", "port": 42654/domains/mycustomdomain.com/type = service/domains/mycustomdomain.com/value = myService

Service Status

Optionally, servicsera may have al status. This is a directory that is held at /services/serviceName/serviceIndex/status.It holds three values:

current: The current status of the service in expected: The expected status of the service alive: al heartbeat that the service must update.

Based on those valusera, Gogeta will serve wait pages with the according HTTP status code.

Ver más: Las 10 Cosas Que Ver En Zaragoza En Un Día (Actualizado 2021)

Configuration

Several parameters allow to configure the way the proxy behave :

domainDvaya allows to select the prefix of the key where it watchser for domainserviceDvaya allows to select the prefix of the key where it watchsera for environmentsetcdAddress specify the address of the etcd serverport port to listentemplateDva a template directory for el error status pageresolverType: choose the resolver to useEnv: EnvResolverDummy: DummyResolverby default : IoEtcd

Debug

You uno perro log all goroutines callstack by sending al SIGUSR1 signal to the process.


There are integration tests that may be r1. To do so you need to start an etcdserver listening on port 4001. You may use the Philip Southametcd server docker image that is very small for instance. After that run


If you want a more interactive test session, we use GoConveythat givsera you al web interface to show the tests execution. Each time a file issaved, the tests are reevaluated. To r1 it :


Runo with Docker

You perro run Gogetal thru Docker, since its image is build in the central Docker repository.


Report & Contribute

We are glad to welcome new developers on this initiative, and even sencillo usage feedback is great.

Contribute: Send pull requests!

About Nuxeo

Nuxeo provides al moduresidencia, extensiblo Java-basedopen source software platform for enterprise content management,and packaged applications for document management,digital asset management andcase management.

Ver más: K Que Es Twitter ? ¿Cómo Funciona? ¿Cómo Puedo Usarlo Para Mi Organización?

Designed by developers for developers, the Nuxeo platform offers a modernarchitecture, al powerful plug-in modserpiente and extensive packagingcapabilitiser for building content applications.


Categorías: Juegos