Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    innerop
    @innerop
    @mosuka ^
    I should be able to ... right?
    Minoru Osuka
    @mosuka
    @innerop
    If the gateway goes down, you need to restart it. and if you need to improve fault tolerance, recommend deploying multiple gateways behind the load balancer.
    Jeffrey Spies
    @JeffSpies
    Hi, all, is something going on with the bayard docker? I'm following the instructions here https://bayard-search.github.io/bayard/running_on_docker.html but getting an error
    error: Found argument '1' which wasn't expected, or isn't valid in this context
    Minoru Osuka
    @mosuka
    @JeffSpies Hi. Thanks for the report. I’ll check the Docker container image.
    Minoru Osuka
    @mosuka
    @JeffSpies Sorry for the inconvenience.
    I fixed docker run example. Can you re-run following command?
    $ docker run --rm --name bayard \
        -p 5000:5000 -p 7000:7000 -p 9000:9000 \
        bayardsearch/bayard:latest \
        --data-directory=/tmp/bayard \
        --schema-file /etc/bayard/schema.json \
        --tokenizer-file /etc/bayard/tokenizer.json \
        1
    Jeffrey Spies
    @JeffSpies
    @mosuka Can do!
    Looking good. Next I'll try to get that to run with docker-compose.
    Thanks!
    Minoru Osuka
    @mosuka
    Cool! Hope it goes well.
    Please feel free to contact me if you have any problems. :)
    Jeffrey Spies
    @JeffSpies
    Thanks! Looking forward to playing with it; it looks like a great project.
    Jeffrey Spies
    @JeffSpies
    @mosuka Do you have examples using grpc to communicate with bayard? I'm wondering if I should just do that in node.js rather than use the HTTP server or cli.
    Minoru Osuka
    @mosuka

    Hi @JeffSpies ,
    How about using the grpc-web?
    https://github.com/grpc/grpc-web

    I have been generated the grpc-web client code as an experimentally. But I haven't tried it yet. If you would like to use it and give me feedback?
    https://github.com/bayard-search/bayard-proto/tree/master/grpc-web

    Jeffrey Spies
    @JeffSpies
    Hi, @mosuka, I'll give it a try! I'm having more basic problems now with the rest server--using the docker--and consistently getting "failed to request" errors
    I've tried setting, batch setting, and hitting status
    I'm exposing barnyard 5000, 7000, and 9000 and then running banyard-rest docker with the default command arguments
    e.g., index at 5000
    Minoru Osuka
    @mosuka
    @JeffSpies Sorry for the late reply.
    Can you tell me what commands you actually executed?
    xialvjun
    @xialvjun

    I just want to have a try of bayard, so I use docker and just one single node. Then

    docker run --rm --name bayard-server \
            -p 5000:5000 -p 7000:7000 -p 9000:9000 \
            bayardsearch/bayard:latest \
            --data-directory=/tmp/bayard \
            --schema-file /etc/bayard/schema.json \
            --tokenizer-file /etc/bayard/tokenizer.json \
            1
    
    # new terminal
    docker run --rm --name bayard-rest \
            -p 8000:8000 \
            bayardsearch/bayard-rest:latest
    
    # new terminal
    curl -X GET 'http://localhost:8000/v1/schema'
    # failed to request getting schema

    What's wrong with it?

    @mosuka
    Minoru Osuka
    @mosuka
    @xialvjun Sorry for the late reply. Let me check.
    Minoru Osuka
    @mosuka
    @xialvjun Thank you for waiting.
    I added docker-compose.yml. Please try following commands:
    docker-compose up -d
    curl -X GET 'http://localhost:8000/v1/schema'
    xialvjun
    @xialvjun

    Thanks for your reply. But I do it like this, it shows:

    ➤ mkdir test_bayard & cd test_bayard
    ➤ wget https://raw.githubusercontent.com/bayard-search/bayard/master/docker-compose.yml
    ➤ docker-compose up
    
    # new terminal
    ➤ docker images
    REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
    bayardsearch/bayard                latest              19dc2aaab5c3        12 days ago         178MB
    bayardsearch/bayard-rest           latest              0e1bbd25a2a5        2 months ago        80.7MB
    ➤ curl -i -X POST 'http://localhost:8000/v1/schema' # 404
    ➤ curl -i -X GET 'http://localhost:8000/v1/schema' # 500
    ➤ curl -X PUT --header 'Content-Type: application/json' --data-binary '{id:"1",name:"jack"}' 'http://localhost:8000/v1/documents/1' # curl: (52) Empty reply from server -- bayard-rest    | thread 'actix-rt:worker:0' panicked at

    I don't know if it 's I was using it wrong.

    Minoru Osuka
    @mosuka
    @xialvjun Hi. It works fine in the following environment.
    % uname -srvmpio
    Linux 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    % docker-compose version
    docker-compose version 1.26.2, build eefe0d31
    docker-py version: 4.2.2
    CPython version: 3.7.7
    OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019
    % docker images
    REPOSITORY                      TAG                            IMAGE ID            CREATED             SIZE
    bayardsearch/bayard-rest        latest                         a3ab68947ea1        2 weeks ago         96.6MB
    bayardsearch/bayard             latest                         d11a2c950241        2 weeks ago         178MB
    % docker run --rm bayardsearch/bayard:latest -v
    bayard 0.8.4