Skip to content
Snippets Groups Projects
Commit b1e8bd42 authored by inertia's avatar inertia
Browse files

Merge branch 'jussi-update' into 'develop'

jussi update

See merge request !51
parents 39386770 2db89f94
No related branches found
No related tags found
3 merge requests!53Deploy to production,!52Deploy latest,!51jussi update
...@@ -28,7 +28,7 @@ Jussi is a reverse proxy that is situation between the API client and the `hived ...@@ -28,7 +28,7 @@ Jussi is a reverse proxy that is situation between the API client and the `hived
##### To run `jussi` locally: ##### To run `jussi` locally:
```bash ```bash
git clone https://github.com/steemit/jussi.git git clone https://gitlab.syncad.com/hive/jussi.git
cd jussi cd jussi
docker build -t="$USER/jussi:$(git rev-parse --abbrev-ref HEAD)" . docker build -t="$USER/jussi:$(git rev-parse --abbrev-ref HEAD)" .
docker run -itp 9000:8080 "$USER/jussi:$(git rev-parse --abbrev-ref HEAD)" docker run -itp 9000:8080 "$USER/jussi:$(git rev-parse --abbrev-ref HEAD)"
...@@ -53,12 +53,12 @@ The default `DEV_config.json` is: ...@@ -53,12 +53,12 @@ The default `DEV_config.json` is:
```json ```json
{ {
"limits":{"blacklist_accounts":["non-steemit"]}, "limits":{"blacklist_accounts":["badguy"]},
"upstreams":[ "upstreams":[
{ {
"name":"hived", "name":"hived",
"translate_to_appbase":false, "translate_to_appbase":false,
"urls":[["hived", "https://hived.steemitdev.com"]], "urls":[["hived", "http://api.hive.blog"]],
"ttls":[ "ttls":[
["hived", 3], ["hived", 3],
["hived.login_api", -1], ["hived.login_api", -1],
...@@ -89,7 +89,7 @@ The default `DEV_config.json` is: ...@@ -89,7 +89,7 @@ The default `DEV_config.json` is:
}, },
{ {
"name":"appbase", "name":"appbase",
"urls":[["appbase", "https://hived.steemitdev.com"]], "urls":[["appbase", "https://api.hive.blog"]],
"ttls":[ "ttls":[
["appbase", -2], ["appbase", -2],
["appbase.block_api", -2], ["appbase.block_api", -2],
...@@ -152,11 +152,7 @@ Jussi can be configured with various `TTL` (Time To Live) schemes. A `TTL` is an ...@@ -152,11 +152,7 @@ Jussi can be configured with various `TTL` (Time To Live) schemes. A `TTL` is an
| `hived` | `database_api` | `get_state` | `'/promoted'` | 30 | | `hived` | `database_api` | `get_state` | `'/promoted'` | 30 |
| `hived` | `database_api` | `get_state` | `'/created'` | 10 | | `hived` | `database_api` | `get_state` | `'/created'` | 10 |
| `hived` | `database_api` | `get_dynamic_global_properties` | _all_ | 1 | | `hived` | `database_api` | `get_dynamic_global_properties` | _all_ | 1 |
| `overseer` | _all_ | _all_ | _all_ | 5 |
| `conveyor` | _all_ | _all_ | _all_ | -1 |
| `hbds` | _all_ | _all_ | _all_ | 3 |
| `hivemind` | _all_ | _all_ | _all_ | 3 | | `hivemind` | _all_ | _all_ | _all_ | 3 |
| `yo` | _all_ | _all_ | _all_ | 3 |
In this case, requests for `login_api` and `network_broadcast_api` have a `TTL` of `-1`, which means requests with those namespaces are not cached, whereas `follow_api` request have a `TTL` of `10` seconds. In this case, requests for `login_api` and `network_broadcast_api` have a `TTL` of `-1`, which means requests with those namespaces are not cached, whereas `follow_api` request have a `TTL` of `10` seconds.
...@@ -177,7 +173,7 @@ Each `urls` key can have multiple endpoints for each namespace. For example: ...@@ -177,7 +173,7 @@ Each `urls` key can have multiple endpoints for each namespace. For example:
```json ```json
{ {
"urls":[ "urls":[
["appbase", "https://api.steemitdev.com"] ["appbase", "http://anyx.io"]
] ]
} }
``` ```
...@@ -187,9 +183,9 @@ Each `urls` key can have multiple endpoints for each namespace. For example: ...@@ -187,9 +183,9 @@ Each `urls` key can have multiple endpoints for each namespace. For example:
```json ```json
{ {
"urls":[ "urls":[
["appbase","https://api.steemitdev.com"], ["appbase","http://anyx.io"],
["appbase.condenser_api.get_account_history","https://api-for-account-history.steemitdev.com"], ["appbase.condenser_api.get_account_history","http://anyx.io"],
["appbase.condenser_api.get_ops_in_block","https://api-for-get-ops-in-block.steemitdev.com"] ["appbase.condenser_api.get_ops_in_block","http://anyx.io"]
] ]
} }
``` ```
...@@ -386,7 +382,7 @@ curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params": ...@@ -386,7 +382,7 @@ curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":
* Batch requests are limited to a maximum of 50 request elements. * Batch requests are limited to a maximum of 50 request elements.
* *Also see: [json-rpc batch specification](http://www.jsonrpc.org/specification#batch)* * *Also see: [json-rpc batch specification](http://www.jsonrpc.org/specification#batch)*
* Repository: [github.com/steemit/jussi](https://github.com/steemit/jussi) * Repository: [gitlab.syncad.com/hive/jussi](https://gitlab.syncad.com/hive/jussi)
--- ---
......
...@@ -7,7 +7,7 @@ layout: full ...@@ -7,7 +7,7 @@ layout: full
canonical_url: jussi-multiplexer.html canonical_url: jussi-multiplexer.html
--- ---
*By the end of this recipe you should know how to install `jussi` on your local subnet to take advantage of its features.* *How to install `jussi` on your local subnet to take advantage of its features.*
This recipe will take you through the process of setting up `jussi` for a small infrastructure like a home network. This recipe will take you through the process of setting up `jussi` for a small infrastructure like a home network.
...@@ -38,13 +38,13 @@ Although it's possible to set up `jussi` to run natively without virtualization, ...@@ -38,13 +38,13 @@ Although it's possible to set up `jussi` to run natively without virtualization,
#### 2. Install `jussi` <a name="install-jussi"></a> #### 2. Install `jussi` <a name="install-jussi"></a>
```bash ```bash
git clone https://github.com/steemit/jussi.git git clone https://gitlab.syncad.com/hive/jussi.git
cd jussi cd jussi
``` ```
Edit the file `DEV_config.json` and change all: Edit the file `DEV_config.json` and change all:
`https://hived.steemitdev.com` `https://api.steemit.com`
... to ... ... to ...
......
images/tutorials-recipes/jussi-multiplexer/network-diagram.png

33.3 KiB | W: | H:

images/tutorials-recipes/jussi-multiplexer/network-diagram.png

27.2 KiB | W: | H:

images/tutorials-recipes/jussi-multiplexer/network-diagram.png
images/tutorials-recipes/jussi-multiplexer/network-diagram.png
images/tutorials-recipes/jussi-multiplexer/network-diagram.png
images/tutorials-recipes/jussi-multiplexer/network-diagram.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment