| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
Server packages |
| 4 |
=============== |
| 5 |
|
| 6 |
The package ``groonga`` is the minimum set of fulltext search engine. |
| 7 |
If you want to use groonga for server use, you can install |
| 8 |
additional preconfigured packages. |
| 9 |
|
| 10 |
There are three packages for server use. |
| 11 |
|
| 12 |
* :doc:`/reference/executables/groonga-httpd` (nginx and HTTP based server package) |
| 13 |
* :doc:`/reference/executables/groonga-server-http` (HTTP based server package) |
| 14 |
* ``groonga-server-gqtp`` (:doc:`/spec/gqtp` based server package) |
| 15 |
|
| 16 |
There is the reason why groonga supports not only GQTP but also two HTTP server |
| 17 |
packages. :doc:`/spec/gqtp` - Groonga Query Transfer Protocol is designed to reduce overheads |
| 18 |
and improve performance. But, GQTP is less support of client library than HTTP protocol does. |
| 19 |
As HTTP is matured protocol, you can take advantage of existing tool and there are many client |
| 20 |
library (See `related projects <https://groonga.org/related-projects.html>`_ for details). |
| 21 |
If you use :doc:`/reference/executables/groonga-httpd` package, you can also take benefits of nginx functionality. |
| 22 |
|
| 23 |
We recommend to use :doc:`/reference/executables/groonga-server-http` at first, because it provides fulfilling server functionality. |
| 24 |
If you have performance issues which is derived from protocol overheads, consider to use ``groonga-server-gqtp``. |
| 25 |
|
| 26 |
groonga-httpd |
| 27 |
------------- |
| 28 |
|
| 29 |
.. warning:: |
| 30 |
|
| 31 |
groonga-httpd has been extracted as `groonga-nginx |
| 32 |
<https://github.com/groonga/groonga-nginx>`_ since Groonga |
| 33 |
13.0.3. |
| 34 |
|
| 35 |
``groonga-httpd`` is a nginx and HTTP based server package. |
| 36 |
|
| 37 |
Preconfigured setting: |
| 38 |
|
| 39 |
+--------------------+---------------------------------------+ |
| 40 |
| Item | Default value | |
| 41 |
+====================+=======================================+ |
| 42 |
| Port number | 10041 | |
| 43 |
+--------------------+---------------------------------------+ |
| 44 |
| Access log path | /var/log/groonga/httpd/access.log | |
| 45 |
+--------------------+---------------------------------------+ |
| 46 |
| Error log path | /var/log/groonga/http-query.log | |
| 47 |
+--------------------+---------------------------------------+ |
| 48 |
| Database | /var/lib/groonga/db/* | |
| 49 |
+--------------------+---------------------------------------+ |
| 50 |
| Configuration file | /etc/groonga/httpd/groonga-httpd.conf | |
| 51 |
+--------------------+---------------------------------------+ |
| 52 |
|
| 53 |
Start HTTP server |
| 54 |
^^^^^^^^^^^^^^^^^ |
| 55 |
|
| 56 |
Starting groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 57 |
|
| 58 |
% sudo service groonga-httpd start |
| 59 |
|
| 60 |
Starting groonga HTTP server(Fedora):: |
| 61 |
|
| 62 |
% sudo systemctl start groonga-httpd |
| 63 |
|
| 64 |
Stop HTTP server |
| 65 |
^^^^^^^^^^^^^^^^ |
| 66 |
|
| 67 |
Stopping groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 68 |
|
| 69 |
% sudo service groonga-httpd stop |
| 70 |
|
| 71 |
Starting groonga HTTP server(Fedora):: |
| 72 |
|
| 73 |
% sudo systemctl stop groonga-httpd |
| 74 |
|
| 75 |
Restart HTTP server |
| 76 |
^^^^^^^^^^^^^^^^^^^ |
| 77 |
|
| 78 |
Restarting groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 79 |
|
| 80 |
% sudo service groonga-httpd restart |
| 81 |
|
| 82 |
Restarting groonga HTTP server(Fedora):: |
| 83 |
|
| 84 |
% sudo systemctl restart groonga-httpd |
| 85 |
|
| 86 |
groonga-server-gqtp |
| 87 |
------------------- |
| 88 |
|
| 89 |
``groonga-server-gqtp`` is a :doc:`/spec/gqtp` based server package. |
| 90 |
|
| 91 |
+--------------------+---------------------------------------+ |
| 92 |
| Item | Default value | |
| 93 |
+====================+=======================================+ |
| 94 |
| Port number | 10043 | |
| 95 |
+--------------------+---------------------------------------+ |
| 96 |
| :ref:`process-log` | /var/log/groonga/groonga-gqtp.log | |
| 97 |
+--------------------+---------------------------------------+ |
| 98 |
| :ref:`query-log` | /var/log/groonga/gqtp-query.log | |
| 99 |
+--------------------+---------------------------------------+ |
| 100 |
| Database | /var/lib/groonga/db/* | |
| 101 |
+--------------------+---------------------------------------+ |
| 102 |
|
| 103 |
Configuration file for server setting (Debian/Ubuntu):: |
| 104 |
|
| 105 |
/etc/default/groonga/groonga-server-gqtp |
| 106 |
|
| 107 |
Configuration file for server setting (AlmaLinux):: |
| 108 |
|
| 109 |
/etc/sysconfig/groonga-server-gqtp |
| 110 |
|
| 111 |
Start GQTP server |
| 112 |
^^^^^^^^^^^^^^^^^ |
| 113 |
|
| 114 |
Starting groonga GQTP server(Debian/Ubuntu/AlmaLinux):: |
| 115 |
|
| 116 |
% sudo service groonga-server-gqtp start |
| 117 |
|
| 118 |
Starting groonga GQTP server(Fedora):: |
| 119 |
|
| 120 |
% sudo systemctl start groonga-server-gqtp |
| 121 |
|
| 122 |
Stop GQTP server |
| 123 |
^^^^^^^^^^^^^^^^ |
| 124 |
|
| 125 |
Stopping groonga GQTP server(Debian/Ubuntu/AlmaLinux):: |
| 126 |
|
| 127 |
% sudo service groonga-server-http stop |
| 128 |
|
| 129 |
Stopping groonga GQTP server(Fedora):: |
| 130 |
|
| 131 |
% sudo systemctl stop groonga-server-gqtp |
| 132 |
|
| 133 |
Restart GQTP server |
| 134 |
^^^^^^^^^^^^^^^^^^^ |
| 135 |
|
| 136 |
Restarting groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 137 |
|
| 138 |
% sudo service groonga-server-gqtp restart |
| 139 |
|
| 140 |
Restarting groonga HTTP server(Fedora):: |
| 141 |
|
| 142 |
% sudo systemctl restart groonga-server-gqtp |
| 143 |
|
| 144 |
groonga-server-http |
| 145 |
------------------- |
| 146 |
|
| 147 |
``groonga-server-http`` is a simple HTTP based server package. |
| 148 |
|
| 149 |
Preconfigured setting: |
| 150 |
|
| 151 |
+--------------------+---------------------------------------+ |
| 152 |
| Item | Default value | |
| 153 |
+====================+=======================================+ |
| 154 |
| Port number | 10041 | |
| 155 |
+--------------------+---------------------------------------+ |
| 156 |
| :ref:`process-log` | /var/log/groonga/groonga-http.log | |
| 157 |
+--------------------+---------------------------------------+ |
| 158 |
| :ref:`query-log` | /var/log/groonga/http-query.log | |
| 159 |
+--------------------+---------------------------------------+ |
| 160 |
| Database | /var/lib/groonga/db/* | |
| 161 |
+--------------------+---------------------------------------+ |
| 162 |
|
| 163 |
Configuration file for server setting (Debian/Ubuntu):: |
| 164 |
|
| 165 |
/etc/default/groonga/groonga-server-http |
| 166 |
|
| 167 |
Configuration file for server setting (AlmaLinux):: |
| 168 |
|
| 169 |
/etc/sysconfig/groonga-server-http |
| 170 |
|
| 171 |
Start HTTP server |
| 172 |
^^^^^^^^^^^^^^^^^ |
| 173 |
|
| 174 |
Starting groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 175 |
|
| 176 |
% sudo service groonga-server-http start |
| 177 |
|
| 178 |
Starting groonga HTTP server(Fedora):: |
| 179 |
|
| 180 |
% sudo systemctl start groonga-server-http |
| 181 |
|
| 182 |
Stop HTTP server |
| 183 |
^^^^^^^^^^^^^^^^ |
| 184 |
|
| 185 |
Stopping groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 186 |
|
| 187 |
% sudo service groonga-server-http stop |
| 188 |
|
| 189 |
Stopping groonga HTTP server(Fedora):: |
| 190 |
|
| 191 |
% sudo systemctl stop groonga-server-http |
| 192 |
|
| 193 |
Restart HTTP server |
| 194 |
^^^^^^^^^^^^^^^^^^^ |
| 195 |
|
| 196 |
Restarting groonga HTTP server(Debian/Ubuntu/AlmaLinux):: |
| 197 |
|
| 198 |
% sudo service groonga-server-http restart |
| 199 |
|
| 200 |
Restarting groonga HTTP server(Fedora):: |
| 201 |
|
| 202 |
% sudo systemctl restart groonga-server-http |
| 203 |
|