mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
73 lines
1.9 KiB
ReStructuredText
73 lines
1.9 KiB
ReStructuredText
Ongoing Maintanence and Basic Operations
|
|
########################################
|
|
|
|
Configuration and logs
|
|
======================
|
|
|
|
The supervisor config can be found in
|
|
``/opt/redash/supervisord/supervisord.conf``.
|
|
|
|
There you can see the names of its programs (``redash_celery``,
|
|
``redash_server``) and the location of their logs.
|
|
|
|
Restart
|
|
=======
|
|
|
|
Restarting the Web Server
|
|
-------------------------
|
|
|
|
``sudo supervisorctl restart redash_server``
|
|
|
|
Restarting Celery Workers
|
|
-------------------------
|
|
|
|
``sudo supervisorctl restart redash_celery``
|
|
|
|
Restarting Celery Workers & the Queries Queue
|
|
---------------------------------------------
|
|
|
|
In case you are handling a problem, and you need to stop the currently
|
|
running queries and reset the queue, follow the steps below.
|
|
|
|
1. Stop celery: ``sudo supervisorctl stop redash_celery`` (celery might
|
|
take some time to stop, if it's in the middle of running a query)
|
|
|
|
2. Flush redis: ``redis-cli flushall``.
|
|
|
|
3. Start celery: ``sudo supervisorctl start redash_celery``
|
|
|
|
Changing the Number of Workers
|
|
==============================
|
|
|
|
By default, Celery will start a worker per CPU core. Because most of
|
|
Re:dash's tasks are IO bound, the real limit for number of workers you
|
|
can use depends on the amount of memory your machine has. It's
|
|
recommended to increase number of workers, to support more concurrent
|
|
queries.
|
|
|
|
1. Open the supervisord configuration file:
|
|
``/opt/redash/supervisord/supervisord.conf``
|
|
|
|
2. Edit the ``[program:redash_celery]`` section and add to the *command*
|
|
value, the param "-c" with the number of concurrent workers you need.
|
|
|
|
3. Restart supervisord to apply new configuration:
|
|
``sudo /etc/init.d/redash_supervisord restart``.
|
|
|
|
DB
|
|
==
|
|
|
|
Backup Re:dash's DB:
|
|
--------------------
|
|
|
|
Uncompressed backup: ``sudo -u redash pg_dump > backup_filename.sql``
|
|
|
|
Compressed backup: ``sudo -u redash pg_dump redash | gzip > backup_filename.gz``
|
|
|
|
Version
|
|
=======
|
|
|
|
See current version:
|
|
|
|
``bin/run ./manage.py version``
|