Difference between revisions of "RethinkDB"

From ArchWiki
Jump to: navigation, search
(Installing RethinkDB: Fix AUR installation style. See Help:Style.)
(Installing RethinkDB)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Database management systems]]
 
[[Category:Database management systems]]
 +
[[ja:RethinkDB]]
 
RethinkDB is a document-oriented database similar to [[MongoDB]] but aims to overcome scalability and practical limitation of the latter. [http://www.rethinkdb.com/docs/comparisons/mongodb/] [http://www.rethinkdb.com/blog/mongodb-biased-comparison/] RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.
 
RethinkDB is a document-oriented database similar to [[MongoDB]] but aims to overcome scalability and practical limitation of the latter. [http://www.rethinkdb.com/docs/comparisons/mongodb/] [http://www.rethinkdb.com/blog/mongodb-biased-comparison/] RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.
  
 
==Installing RethinkDB==
 
==Installing RethinkDB==
Install {{Aur|rethinkdb}} from [[AUR]].
+
Install {{pkg|rethinkdb}} from the official repositories.
  
Now you can start rethinkdb from command-line:
+
Now you can start `rethinkdb` from the command-line:
 
  # rethinkdb
 
  # rethinkdb
  
Or instead you can run it as systemd service. Enable default rethinkdb instance as
+
Or instead you can run it as a `systemd` service. Enable the default `rethinkdb` instance as
 
  # systemctl enable rethinkdb@default
 
  # systemctl enable rethinkdb@default
  
Line 14: Line 15:
 
  # systemctl start rethinkdb@default
 
  # systemctl start rethinkdb@default
  
Admin UI will be available at [http://localhost:8080 8080] port.
+
RethinkDB's admin UI is now available on port [http://localhost:8080 8080].
  
 
==Configuring RethinkDB==
 
==Configuring RethinkDB==
RethinkDB has multi-instance support, which means you can run several independent database instances at the same machine. Systemd service also supports multi-instance configuration.
+
RethinkDB has multi-instance support, which means you can run several independent database instances on the same machine. The `systemd` service also supports multi-instance configuration.
  
To create a new RethinkDB instance create its configuration file:
+
To create a new RethinkDB instance, create its configuration file:
 
  # cd /etc/rethinkdb
 
  # cd /etc/rethinkdb
 
  # cp default.conf.sample instances.d/<NAME>.conf
 
  # cp default.conf.sample instances.d/<NAME>.conf
  
where <NAME> is the name of you configuration that you'll going to use later. Change configuration options in the new config file. Then start the service:
+
where <NAME> represents the configuration you'll be using later. Change the configuration options in the new config file. Then start the service:
  # systectl enable rethinkdb@<NAME>
+
  # systemctl enable rethinkdb@<NAME>
  # systectl start rethinkdb@<NAME>
+
  # systemctl start rethinkdb@<NAME>
  
'default' instance is created at installation time for your convinence. Its data is stored in /var/lib/erethinkdb/default
+
The 'default' instance is created at installation time for your convenience. Its data is stored in `/var/lib/rethinkdb/default`.

Latest revision as of 13:42, 15 September 2016

RethinkDB is a document-oriented database similar to MongoDB but aims to overcome scalability and practical limitation of the latter. [1] [2] RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports really useful queries like table joins and group by, and is easy to setup and learn.

Installing RethinkDB

Install rethinkdb from the official repositories.

Now you can start `rethinkdb` from the command-line:

# rethinkdb

Or instead you can run it as a `systemd` service. Enable the default `rethinkdb` instance as

# systemctl enable rethinkdb@default

and start it:

# systemctl start rethinkdb@default

RethinkDB's admin UI is now available on port 8080.

Configuring RethinkDB

RethinkDB has multi-instance support, which means you can run several independent database instances on the same machine. The `systemd` service also supports multi-instance configuration.

To create a new RethinkDB instance, create its configuration file:

# cd /etc/rethinkdb
# cp default.conf.sample instances.d/<NAME>.conf

where <NAME> represents the configuration you'll be using later. Change the configuration options in the new config file. Then start the service:

# systemctl enable rethinkdb@<NAME>
# systemctl start rethinkdb@<NAME>

The 'default' instance is created at installation time for your convenience. Its data is stored in `/var/lib/rethinkdb/default`.