Portal Persistency

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/QzgLUaoeGAU Import Date: 2016-01-19 21:21:07 +0000.
Sender:John Williams.
Date:Saturday, 22 August 2015 02:07:32 UTC+1.

This may be a duplicate post.

Portal is run by typing:

.tyk-analytics

This fires the portal and we get:

INFO[0000] Loading configuration from ./tyk_analytics.conf
INFO[0000] Connecting to redis on: localhost:6379
INFO[0000] Tyk.io Analytics Dashboard 0.9.4
INFO[0000] Copyright Jively Ltd. 2014
INFO[0000] http://www.tyk.io
INFO[0000] Listening on port: 3000

we can then access the portal.

When this window is closed the portal goes down. the main tyke server remains up though.

How do we get the portal to persist even if the window is closed.

Thanks

JW

Imported Google Group message.
Sender:Martin Buhr.
Date:Saturday, 22 August 2015 09:16:41 UTC+1.

Hi John,

When you close the window you will be terminating the shell that the dashboard is running in, this kills the dashboard :slight_smile:

There’s a few ways to get the dashboard to run as a server - you could look at running it as an init script as part of your servers boot process.

You could also look at running it with supervisord which does a great job of managing multiple processes and demonising them cleanly

Finally you could look at using the docker versions, since the docker containers will run in the background.

A hacky (and not recommended) way is using tmux or gnu screen, but they will not really keep your process running, supervisord and docker are much cleaner, better ways.

How are you keeping the Tyk gateway instance running?

Cheers,
Martin

  • show quoted text -

  • show quoted text -


You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/11c90b5f-ba48-4cef-96bf-46728e9f4754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Tor Inge Skaar.
Date:Wednesday, 26 August 2015 08:24:18 UTC+1.

Hi John. I run both Tyk and Tyk-Analytics in the background using supervisor (as Martin here suggests). It’s a very easy and simple setup. However, I did run into a problem when the supervisord process daemonized tyk-analytics, as it would fail to start if not being executed from within the same folder it was installed. So I had to write a little wrapper script for supervisor, so that supervisor change directory before launching tyk-analytics.

Best regards,
Tor Inge Skaar

  • show quoted text -