Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

issues with Amazon load balancer #255

Closed
michaelgursky opened this issue Jun 17, 2014 · 5 comments
Closed

issues with Amazon load balancer #255

michaelgursky opened this issue Jun 17, 2014 · 5 comments

Comments

@michaelgursky
Copy link

(Just noting for the record, not necessarily requesting any changes.)

I was recently testing roxy with an AWS cluster set up using the ELB (elastic load balancer). I ran into a couple of issues:

  1. Roxy sends a version name of "XDBC/1.0" in the HTTP request line. This causes the load balancer to reject the request with 400: Bad request. Changing this (in write_header in xcc.rb) to "HTTP/1.1" fixes the problem.
  2. "deploy modules" with the batch setting on (the default), results in 504: Gateway timeout. The fix is to use "deploy modules --batch=false" so that each module is committed individually.
@michaelgursky
Copy link
Author

After further testing, it seems that changing the version string to HTTP/1.1 is a bad idea for actual XDBC traffic. With this change, each module copied by "deploy modules" ends up with the file size as the first line of the file followed by the actual code.

@grtjn
Copy link
Contributor

grtjn commented Jun 17, 2014

I think this requires tunneling. Not sure we got docs or examples on that, but have heard about people trying to do that..

@bakkenh
Copy link

bakkenh commented Jan 4, 2017

In case someone runs across this on a google search, the best solution is covered here:

https://github.com/marklogic/roxy/wiki/Using-Roxy-Deployer-with-Amazon

I had this same issue- the fix was to change the listener to accept TCP instead of HTTP on the XCC port.

@dmcassel
Copy link
Collaborator

dmcassel commented Jan 4, 2017

Thanks @bakkenh. If you've got more details that we can put on that wiki, I'd be happy to add them.

@grtjn
Copy link
Contributor

grtjn commented Jun 13, 2017

Added details about 504 timeout to the wiki..

@grtjn grtjn closed this as completed Jun 13, 2017
@grtjn grtjn self-assigned this Jun 13, 2017
@grtjn grtjn added this to the July 2017 milestone Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants