More improvements to HOWTO.rst
This commit is contained in:
parent
e577172a00
commit
0e7cd498ca
@ -1,3 +1,5 @@
|
|||||||
|
.. _environment:
|
||||||
|
|
||||||
=====================
|
=====================
|
||||||
Environment Variables
|
Environment Variables
|
||||||
=====================
|
=====================
|
||||||
@ -383,6 +385,8 @@ because of Python overhead and also because leveldb consumes a lot of
|
|||||||
memory when flushing. So I recommend you do not set this over 60% of
|
memory when flushing. So I recommend you do not set this over 60% of
|
||||||
your available physical RAM:
|
your available physical RAM:
|
||||||
|
|
||||||
|
.. _CACHE:
|
||||||
|
|
||||||
* **CACHE_MB**
|
* **CACHE_MB**
|
||||||
|
|
||||||
The amount of cache, in MB, to use. The default is 1,200.
|
The amount of cache, in MB, to use. The default is 1,200.
|
||||||
|
|||||||
@ -92,8 +92,8 @@ process. The sample scripts and these instructions assume it is all
|
|||||||
under one account which I have called ``electrumx``.
|
under one account which I have called ``electrumx``.
|
||||||
|
|
||||||
Next create a directory where the database will be stored and make it
|
Next create a directory where the database will be stored and make it
|
||||||
writeable by the electrumx account. I recommend this directory live
|
writeable by the ``electrumx`` account. I recommend this directory
|
||||||
on an SSD::
|
live on an SSD::
|
||||||
|
|
||||||
mkdir /path/to/db_directory
|
mkdir /path/to/db_directory
|
||||||
chown electrumx /path/to/db_directory
|
chown electrumx /path/to/db_directory
|
||||||
@ -148,14 +148,14 @@ This copies 3 things: the top level server run script, a :file:`log/`
|
|||||||
directory with the logger :command:`run` script, an :file:`env/`
|
directory with the logger :command:`run` script, an :file:`env/`
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
You need to configure the environment variables under :file:`env/` to
|
You need to configure the :ref:`environment variables <environment>`
|
||||||
your setup, as explained in `ENVIRONMENT.rst`_. ElectrumX server
|
under :file:`env/` to your setup. ElectrumX server currently takes no
|
||||||
currently takes no command line arguments; all of its configuration is
|
command line arguments; all of its configuration is taken from its
|
||||||
taken from its environment which is set up according to :file:`env/`
|
environment which is set up according to :file:`env/` directory (see
|
||||||
directory (see :manpage:`envdir` man page). Finally you need to
|
:manpage:`envdir` man page). Finally you need to change the
|
||||||
change the :command:`log/run` script to use the directory where you
|
:command:`log/run` script to use the directory where you want the logs
|
||||||
want the logs to be written by multilog. The directory need not exist
|
to be written by multilog. The directory need not exist as
|
||||||
as :command:`multilog` will create it, but its parent directory must
|
:command:`multilog` will create it, but its parent directory must
|
||||||
exist.
|
exist.
|
||||||
|
|
||||||
Now start the :command:`svscan` process. This will not do much as the
|
Now start the :command:`svscan` process. This will not do much as the
|
||||||
@ -187,8 +187,8 @@ The sample unit file assumes that the repository is located at
|
|||||||
:file:`/home/electrumx/electrumx`. If that differs on your system, you
|
:file:`/home/electrumx/electrumx`. If that differs on your system, you
|
||||||
need to change the unit file accordingly.
|
need to change the unit file accordingly.
|
||||||
|
|
||||||
You need to set a few configuration variables in :file:`/etc/electrumx.conf`,
|
You need to set a few :ref:`environment variables <environment>` in
|
||||||
see `ENVIRONMENT.rst`_ for the list of required variables.
|
:file:`/etc/electrumx.conf`.
|
||||||
|
|
||||||
Now you can start ElectrumX using :command:`systemctl`::
|
Now you can start ElectrumX using :command:`systemctl`::
|
||||||
|
|
||||||
@ -242,8 +242,8 @@ if the daemon is on the same host. It may even be beneficial to have
|
|||||||
the daemon on a *separate* machine so the machine doing the indexing
|
the daemon on a *separate* machine so the machine doing the indexing
|
||||||
has its caches and disk I/O tuned to that task only.
|
has its caches and disk I/O tuned to that task only.
|
||||||
|
|
||||||
The :envvar:`CACHE_MB` environment variable controls the total cache size
|
The :envvar:`CACHE_MB` environment variable controls the total cache
|
||||||
ElectrumX uses; see `ENVIRONMENT.rst`_ for caveats.
|
size ElectrumX uses; see :ref:`here <CACHE>` for caveats.
|
||||||
|
|
||||||
Here is my experience with the codebase of year ago (the current
|
Here is my experience with the codebase of year ago (the current
|
||||||
codebase is faster), to given heights and rough wall-time. The period
|
codebase is faster), to given heights and rough wall-time. The period
|
||||||
@ -428,7 +428,6 @@ You can then set the port as follows and advertise the service externally on the
|
|||||||
REPORT_SSL_PORT=110
|
REPORT_SSL_PORT=110
|
||||||
|
|
||||||
|
|
||||||
.. _`ENVIRONMENT.rst`: https://github.com/kyuupichan/electrumx/blob/master/docs/ENVIRONMENT.rst
|
|
||||||
.. _`contrib/systemd/electrumx.service`: https://github.com/kyuupichan/electrumx/blob/master/contrib/systemd/electrumx.service
|
.. _`contrib/systemd/electrumx.service`: https://github.com/kyuupichan/electrumx/blob/master/contrib/systemd/electrumx.service
|
||||||
.. _`daemontools`: http://cr.yp.to/daemontools.html
|
.. _`daemontools`: http://cr.yp.to/daemontools.html
|
||||||
.. _`runit`: http://smarden.org/runit/index.html
|
.. _`runit`: http://smarden.org/runit/index.html
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user