Persistent storage is useful for high availability and resilience. This can be useful when your Unleash server is unreachable. On start-up, Edge checks whether the persistent backup option is specified, in which case it uses it to populate its internal caches. For this purpose, Edge supports either Redis or a backup file, which you can configure by passing in either the -redis-url or -backup_folder command line argument, respectively. However, you may want to use a more persistent storage solution. This is done by passing the -upstream-url command line argument or setting the UPSTREAM_URL environment variable.īy default, Edge mode uses an in-memory cache to store the features it fetches from the upstream node. This means that, in order to start up, Edge mode needs to know where the upstream node is. Full control of data and tokens Ī(Client 1) ->|Fetch toggles| C((Edge 1))ī(Client 2) ->|Fetch toggles| D((Edge 2)) Offline - No connection to upstream node.Supports dynamic tokens, metrics and other advanced features Edge - Connection to upstream node (Unleash instance or another Edge).target/release Concepts ModesĮdge currently supports 2 different modes: This will give you an unleash-edge binary in. If you have the Rust toolchain installed you can build a binary for the platform you're running by cloning this repo and running cargo build -release. examples:/edge/data -p 3063:3063 -e BOOTSTRAP_FILE=/edge/data/features.json -e TOKENS='my-secret-123,another-secret-789' unleashorg/unleash-edge:v8.0.1 offline An example is available inside the examples folder. If running in offline mode you will need to provide a volume containing your feature toggles file.docker run -p 3063:3063 -e UPSTREAM_URL= unleashorg/unleash-edge:v8.0.1 edge.If running in edge mode your command should be.To start successfully you will need to decide which mode you're running in. When running the docker image, the same CLI arguments that's available when running the binary is available to your docker run command.If you'd like to live on the edge (sic) you can use the tag edge.For Github package registry use the coordinates ghpr.io/unleash/unleash-edge:.For dockerhub use the coordinates unleashorg/unleash-edge.The docker image gets uploaded to dockerhub and Github Package registry.We're currently building for linux x86_64, windows x86_64, darwin (OS X) x86_64 and darwin (OS X) aarch64 (M1/M2 macs).The binary is downloadable from our Releases page.Unleash Edge is distributed as a binary and as a docker image. If you're hosting Edge with a self-signed certificate using the tls cli arguments, you should use the -ca-certificate-file flag (or the CA_CERTIFICATE_FILE environment variable) to allow the health checker to trust the self signed certificate. There is now (from 5.1.0) a subcommand named health which will ping your health endpoint and exit with status 0 provided the health endpoint returns 200 OK. Token header to use for edge authorization Built-in Health check Possible values: `plain `, `json `, `pretty ` Port to listen for https connection on (will use the interfaces already defined) Server Cert to use for TLS (Needs to be a path to a file) Server key to use for TLS (Needs to be a path to a file) How many workers should be started to handle requests. Which base path should this server listen for HTTP traffic on Which interfaces should this server listen for HTTP traffic on Which port should this server listen for HTTP traffic on Help Print this message or the help of the given subcommand(s) You can configure it by passing in arguments or setting environment variables. Unleash Edge is compiled to a single binary. If you're looking to learn how to scale your own feature flag system why not check out our recommendations for building and scaling feature flagsįor more info on migrating, check out the migration guide that details the differences between Edge and the Proxy and how to achieve similar behavior in Edge.If you're looking for the easiest way to connect your client SDKs you can check out our Frontend API. Unleash Edge is built to help you scale Unleash.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |