steemit / devportal

Steem Platform Developer Documentation.
https://developers.steem.io
MIT License
122 stars 74 forks source link

Jussi Documentation #153

Closed inertia186 closed 6 years ago

inertia186 commented 6 years ago

We need to document jussi. Both setting up a node that responds to jussi requests and some information on which api namespaces sit in front of the various related upstreams.

AC

TimCliff commented 6 years ago

It would be beneficial to also include information on how to use jussi to direct different API calls to different servers.

bnchdrff commented 6 years ago

@gl2748 and i wrote this https://steemit.com/steemdev/@maitland/running-condenser-jussi-and-a-new-service-locally-adding-feature-flags-to-condenser

inertia186 commented 6 years ago

It doesn't look like we have a default configuration yet. Ideally, we should be able to kick off a local instance with:

git clone https://github.com/steemit/jussi.git
cd jussi
docker build -t="$USER/jussi:$(git rev-parse --abbrev-ref HEAD)" .
docker run -itp 9000:8080 "$USER/jussi:$(git rev-parse --abbrev-ref HEAD)"

Looking at these issues, I can get it to work:

https://github.com/steemit/jussi/issues/143 https://github.com/steemit/jussi/issues/103

My diff ended up being:

diff --git a/Dockerfile b/Dockerfile
index c6d15db..2ad9374 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,7 +21,7 @@ ENV APP_CMD jussi.serve
 ENV JUSSI_SERVER_HOST 0.0.0.0
 ENV JUSSI_SERVER_PORT 9000
 ENV JUSSI_UPSTREAM_CONFIG_FILE ${APP_ROOT}/PROD_UPSTREAM_CONFIG.json
-ENV JUSSI_TEST_UPSTREAM_URLS True
+ENV JUSSI_TEST_UPSTREAM_URLS False

 # all nginx env vars must also be changed in service/nginx/nginx.conf
 ENV NGINX_SERVER_PORT 8080
diff --git a/PROD_UPSTREAM_CONFIG.json b/PROD_UPSTREAM_CONFIG.json
index 1b3967c..24f3a86 100644
--- a/PROD_UPSTREAM_CONFIG.json
+++ b/PROD_UPSTREAM_CONFIG.json
@@ -5,7 +5,7 @@
     "urls": [
       [
         "steemd",
-        "wss://steemd.steemit.com"
+        "wss://steemd-int.steemit.com"
       ]
     ],
     "ttls": [

I don't think we should have a diff on devportal, though. So I consider this issue blocked.

relativityboy commented 6 years ago

@john-g-g how does this look to you?

inertia186 commented 6 years ago

Unblocked by https://github.com/steemit/jussi/commit/bb1710e87ab95ad0cf0d1243539cbab818cbfdef.