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

Rest config missing parameters #4

Closed
jhkrischel opened this issue Jun 19, 2018 · 5 comments
Closed

Rest config missing parameters #4

jhkrischel opened this issue Jun 19, 2018 · 5 comments

Comments

@jhkrischel
Copy link

jhkrischel commented Jun 19, 2018

When running a rest gateway with the rest.json built during docker-compose up, massive zmq errors until the following parameters were added to the mq section :

    "monitorInterval": 500,
    "connectTimeout": 10000,
    "monitorLoggingThrottle": 60000
@gimre-xymcity
Copy link

gimre-xymcity commented Jun 20, 2018

how many txes per second you've been sending, we haven't seen zmq errors so far

ignore that, those are exactly values we use, somehow container must be missing them

@jhkrischel
Copy link
Author

jhkrischel commented Jun 20, 2018

This was running our demo that did subscriptions - until I added those parameters, everything immediately timed-out. Under normal circumstances, I'd do less than 10 pub/sub transactions, and it would be done - without the parameters, it kept retrying every few seconds and never succeeded.

{"level":"verbose","message":"websocket VDQWMEVBXHZT7PHQGI6NQYAKRXWGGK6L: created /ws websocket connection","timestamp":"2018-06-18T06:13:54.938Z"}
{"level":"info","message":"subscribing to status/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.040Z"}
{"level":"error","message":"zmq status/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.041Z"}
{"level":"info","message":"subscribing to cosignature/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.140Z"}
{"level":"info","message":"subscribing to confirmedAdded/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.140Z"}
{"level":"info","message":"subscribing to unconfirmedAdded/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.140Z"}
{"level":"info","message":"subscribing to unconfirmedRemoved/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.141Z"}
{"level":"info","message":"subscribing to partialAdded/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.141Z"}
{"level":"info","message":"subscribing to partialRemoved/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM","timestamp":"2018-06-18T06:13:55.141Z"}
{"level":"error","message":"zmq cosignature/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.141Z"}
{"level":"error","message":"zmq confirmedAdded/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.142Z"}
{"level":"error","message":"zmq unconfirmedAdded/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.142Z"}
{"level":"error","message":"zmq unconfirmedRemoved/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.142Z"}
{"level":"error","message":"zmq partialAdded/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.142Z"}
{"level":"error","message":"zmq partialRemoved/SCQ4HFC7D75OFNXICJT4UM6GAYATW5C4EKRI6FRM: connection attempt timed out","timestamp":"2018-06-18T06:13:55.142Z"}
{"level":"verbose","message":"websocket VDQWMEVBXHZT7PHQGI6NQYAKRXWGGK6L: disconnected /ws websocket connection","timestamp":"2018-06-18T06:13:57.116Z"}

@jhkrischel
Copy link
Author

Need to patch ruby/catapult-templates/rest_gateway/rest.json.mt to include the three parameters in the mq section.

@kaiyzen
Copy link
Collaborator

kaiyzen commented Jun 28, 2018

Added missing template params, commit: 3becb80#diff-eeda22f594118b18166f0cbd8d150068

@kaiyzen kaiyzen closed this as completed Jun 28, 2018
@jhkrischel
Copy link
Author

Sweet, thanks @kaiyzen !

planethouki pushed a commit to planethouki/catapult-service-bootstrap that referenced this issue Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants