##// END OF EJS Templates
Authentication: cache plugins for auth and their settings in the auth_registry....
Authentication: cache plugins for auth and their settings in the auth_registry. - Before that change on each requests 4x we loaded plugins for authentication, this hit many caches, db invalidation context and loaded the plugins logic each time. This was a heavy performance hit for SVN and other backends as they needed to load that plugins many many times - Since Authentication plugins almost never change, we'll not store the plugins listed for authentication into the authnregistry for each process - For AuthPlugins settings we now also flush plugins settings, and authnregistry cached plugins

File last commit:

r3290:ac4e4e5a default
r4220:5a873939 stable
Show More
tools-overview.rst
66 lines | 2.1 KiB | text/x-rst | RstLexer

|RCT| Overview

To install |RCT| correctly, see the installation steps covered in :ref:`install-tools`, and :ref:`config-rhoderc`.

Once |RCT| is installed, and the :file:`/home/{user}/.rhoderc` file is configured you can then use |RCT| on each |RCE| instance to carry out admin tasks. Use the following example to configure that file, and once configured see the :ref:`tools-cli` for more details.

Note

|RCT| require |PY| 2.7 to run.

# Get the status of each instance you wish to use with Tools
(venv)brian@ubuntu:~$ rccontrol status

 - NAME: momentum-1
 - STATUS: RUNNING
 - TYPE: Momentum
 - VERSION: 3.0.0-nightly-momentum
 - URL: http://127.0.0.1:10003

 - NAME: momentum-3
 - STATUS: RUNNING
 - TYPE: Momentum
 - VERSION: 3.0.0-nightly-momentum
 - URL: http://127.0.0.1:10007

Example :file:`/home/{user}/.rhoderc` file.

# Configure the .rhoderc file for each instance
# API keys found in your instance
[instance:enterprise-1]
api_host = http://127.0.0.1:10003/
api_key = 91fdbdc257289c46633ef5aab274412911de1ba9
repo_dir = /home/brian/repos

[instance:enterprise-3]
api_host = http://127.0.0.1:10007/
api_key = 5a925f65438d29f8d6ced8ab8e8c3d305998d1d9
repo_dir = /home/brian/testing-repos/

Example usage of |RCT| after |RCE| 3.5.0. From this version onwards |RCT| is packaged with |RCE| by default.

$ .rccontrol/enterprise-4/profile/bin/rhodecode-api --instance-name=enterprise-4 get_ip                                                                                                                                                                                                                                                                                                                                                                     [11:56:57 on 05/10/2018]

{
  "error": null,
  "id": 1000,
  "result": {
    "server_ip_addr": "1.2.3.4",
    "user_ips": []
  }
}