Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update remains waiting on process: should disable rabbitmq heartbeat #94

Open
osallou opened this issue Mar 24, 2018 · 5 comments
Open
Assignees
Labels

Comments

@osallou
Copy link
Contributor

osallou commented Mar 24, 2018

Even though clients set heartbeat_interval to 0, server closes some connections due to heartbeat timeouts
rabbitmq should be configured with heartbeat=0 to disable it.

@osallou osallou added the bug label Mar 24, 2018
@osallou
Copy link
Contributor Author

osallou commented Mar 24, 2018

seems to occur with process service

@osallou
Copy link
Contributor Author

osallou commented Mar 25, 2018

in rabbitmq server:

[root@ rabbitmq]# more config/generated/rabbitmq.config 
[{rabbit,[{hipe_compile,false},
==>    {heartbeat,0},
          {tcp_listeners,[5672]},
...

Need to set a rabbitmq config file (example)

loopback_users.guest = false
listeners.tcp.default = 5672
default_pass = biomaj
default_user = biomaj
hipe_compile = false
heartbeat=0

and mount it via volumes:

    volumes:
        - ${BIOMAJ_DOCKER}/rabbitmq:/var/lib/rabbitmq
        - ${BIOMAJ_DOCKER}/biomaj-config/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:r

@osallou
Copy link
Contributor Author

osallou commented Mar 25, 2018

if heartbeat is needed, should be set to max job duration

@osallou osallou self-assigned this Mar 25, 2018
@osallou
Copy link
Contributor Author

osallou commented Mar 25, 2018

PB: docker rabbitmq does not allow to overrride config file

@osallou
Copy link
Contributor Author

osallou commented Mar 25, 2018

Solution in docker-compose:

biomaj-rabbitmq:
    image: rabbitmq
    hostname: biomaj-rabbitmq
    command: rabbitmq-server
    entrypoint: ""
    volumes:
        - ./rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro

and rabbitmq.config:

[ { rabbit, [
    { heartbeat, 0 },
{ loopback_users, [ ] },
{ tcp_listeners, [ 5672 ] },
{ ssl_listeners, [ ] },
{ default_pass, <<"biomaj">> },
{ default_user, <<"biomaj">> },
{ hipe_compile, false }
] } ].

@osallou osallou changed the title should disable rabbitmq heartbeat Update remains waiting on process: should disable rabbitmq heartbeat Mar 27, 2018
osallou added a commit to genouest/biomaj-docker that referenced this issue Jun 29, 2018
osallou added a commit to genouest/biomaj-docker that referenced this issue Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant