Improve QOS wrt DNS round robin, esp. for user signup
We can easily just eliminate that screen, but the larger question is why is it hanging?
Looks like and error with proxies, likely with one of the peers, causing the OAuth token sequence to fail.
93756 2014-08-13 19:02:42,279 ERROR [pool-3-thread-23] http.GoogleOauth2CallbackServlet.processRequest (GoogleOauth2CallbackServlet.java:147) - Could not load all oauth tokens!! javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523) at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:830) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181) at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:494) at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232) at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401) at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:840) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:647) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) at org.lantern.http.GoogleOauth2CallbackServlet.loadAllToks(GoogleOauth2CallbackServlet.java:239) at org.lantern.http.GoogleOauth2CallbackServlet.processRequest(GoogleOauth2CallbackServlet.java:145) at org.lantern.http.GoogleOauth2CallbackServlet.doGet(GoogleOauth2CallbackServlet.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
Perhaps we should set up a separate sub domain that points only at our (stable) servers and have all signalling traffic use that. The bulk of bandwidth is used by actual user traffic anyway. On Aug 13, 2014 9:16 PM, "myleshorton" [email protected] wrote:
Looks like and error with proxies, likely with one of the peers, causing the OAuth token sequence to fail.
93756 2014-08-13 19:02:42,279 ERROR [pool-3-thread-23] http.GoogleOauth2CallbackServlet.processRequest (GoogleOauth2CallbackServlet.java:147) - Could not load all oauth tokens!! javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523) at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:830) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181) at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:494) at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232) at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401) at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:840) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:647) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) at org.lantern.http.GoogleOauth2CallbackServlet.loadAllToks(GoogleOauth2CallbackServlet.java:239) at org.lantern.http.GoogleOauth2CallbackServlet.processRequest(GoogleOauth2CallbackServlet.java:145) at org.lantern.http.GoogleOauth2CallbackServlet.doGet(GoogleOauth2CallbackServlet.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-52136251.
Yeah I think that's interesting, although I feel like things failing when they're randomly browsing is similarly bad. I'm more inclined to write a service that continually verifies peers' reliability and just kicks out peers that are too slow.
On Wednesday, August 13, 2014, oxtoacart [email protected] wrote:
Perhaps we should set up a separate sub domain that points only at our (stable) servers and have all signalling traffic use that. The bulk of bandwidth is used by actual user traffic anyway. On Aug 13, 2014 9:16 PM, "myleshorton" <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
Looks like and error with proxies, likely with one of the peers, causing the OAuth token sequence to fail.
93756 2014-08-13 19:02:42,279 ERROR [pool-3-thread-23] http.GoogleOauth2CallbackServlet.processRequest (GoogleOauth2CallbackServlet.java:147) - Could not load all oauth tokens!! javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at
com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:830)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181)
at
org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:494)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401)
at
org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:840)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:647)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at
org.lantern.http.GoogleOauth2CallbackServlet.loadAllToks(GoogleOauth2CallbackServlet.java:239)
at
org.lantern.http.GoogleOauth2CallbackServlet.processRequest(GoogleOauth2CallbackServlet.java:145)
at
org.lantern.http.GoogleOauth2CallbackServlet.doGet(GoogleOauth2CallbackServlet.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-52136251.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-52139529.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Or maybe some combination where that crawler assigns them to multiple subdomains that are effectively round robin weights? The client would have to cooperate though.
On Wednesday, August 13, 2014, Adam Fisk [email protected] wrote:
Yeah I think that's interesting, although I feel like things failing when they're randomly browsing is similarly bad. I'm more inclined to write a service that continually verifies peers' reliability and just kicks out peers that are too slow.
On Wednesday, August 13, 2014, oxtoacart <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
Perhaps we should set up a separate sub domain that points only at our (stable) servers and have all signalling traffic use that. The bulk of bandwidth is used by actual user traffic anyway. On Aug 13, 2014 9:16 PM, "myleshorton" [email protected] wrote:
Looks like and error with proxies, likely with one of the peers, causing the OAuth token sequence to fail.
93756 2014-08-13 19:02:42,279 ERROR [pool-3-thread-23] http.GoogleOauth2CallbackServlet.processRequest (GoogleOauth2CallbackServlet.java:147) - Could not load all oauth tokens!! javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at
com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:830)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181)
at
org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:494)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401)
at
org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:840)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:647)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at
org.lantern.http.GoogleOauth2CallbackServlet.loadAllToks(GoogleOauth2CallbackServlet.java:239)
at
org.lantern.http.GoogleOauth2CallbackServlet.processRequest(GoogleOauth2CallbackServlet.java:145)
at
org.lantern.http.GoogleOauth2CallbackServlet.doGet(GoogleOauth2CallbackServlet.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
— Reply to this email directly or view it on GitHub < https://github.com/getlantern/lantern/issues/1719#issuecomment-52136251>.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-52139529 .
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Current hypothesis: is due to a combination of #1664 and #1730.
Even after resolving #1664 and #1730, it will still happen (though more rarely) that there will be a network error on attempting to communicate with Google (and other parts of our signaling infrastructure) because the server that the client happened to be using at that moment went down. We should ensure that the client code is resilient and retries when necessary.
Closing this given all the associated changes in this area.
This is still happening to me, and it looks like it's because of peer proxies. I think we need to segregate peer proxies into their own round-robin pool so that we have a reliable pool to use for signaling/auth stuff.
Here's my thought on the multiple round robins:
- Have the server control everything
- Have it send a list of domains along with the percentage of time the client should choose that domain (should add up to 100%)
- Have the client look for updates to the above with every check in
On Sunday, August 24, 2014, oxtoacart [email protected] wrote:
Reopened #1719 https://github.com/getlantern/lantern/issues/1719.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#event-156538034.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
And agreed we need to work QOS in there somewhere.
On Sunday, August 24, 2014, Adam Fisk [email protected] wrote:
Here's my thought on the multiple round robins:
- Have the server control everything
- Have it send a list of domains along with the percentage of time the client should choose that domain (should add up to 100%)
- Have the client look for updates to the above with every check in
On Sunday, August 24, 2014, oxtoacart <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
Reopened #1719 https://github.com/getlantern/lantern/issues/1719.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#event-156538034.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
If by QOS you mean having critical Lantern traffic go only over fallbacks, then cool. If critical Lantern traffic can still go over peers, just less frequently, then I'm not convinced.
Also, IMHO, DNS provides all the indirection we need, using fallbacks.getiantem.org for the Lantern-maintained fallbacks, peers.getiantem.org for peer proxies and roundrobin.getiantem.org for the full pool including fallbacks. I'm not sure how further granularity can be of use at this point, unless we start getting geography sensitive or something like that.
What do you see as the benefit of adding this server-managed domain list?
To me the biggest issue is that at this point we just don't know what will work, so we want a simple and flexible system. For example, you could imagine having a warm up phase for peers where we put them in a candidate pool that gets some traffic but not as much as the main group. If they do well there, they graduate.
As far as the percentages go, that basically takes the place of weighting, and it's easy to implement. If we get an influx of give mode peers, for example, we might want to increase the percentage of traffic going to them versus fallbacks.
The nice part is that implementing a system where the server has pretty fine grained control over how much traffic goes where is really easy to implement.
On Monday, August 25, 2014, oxtoacart [email protected] wrote:
If by QOS you mean having critical Lantern traffic go only over fallbacks, then cool. If critical Lantern traffic can still go over peers, just less frequently, then I'm not convinced.
Also, IMHO, DNS provides all the indirection we need, using fallbacks.getiantem.org for the Lantern-maintained fallbacks, peers.getiantem.org for peer proxies and roundrobin.getiantem.org for the full pool including fallbacks. I'm not sure how further granularity can be of use at this point, unless we start getting geography sensitive or something like that.
What do you see as the benefit of adding this server-managed domain list?
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53269780.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Okay, I'm sold on doing it.
Regarding implementation, the one novel thing here is that we'll need some way of reconfiguring flashlight on the fly, which we don't currently have, or alternately we could instruct flashlight to grab the list of domains directly from the network.
Cheers, Ox
"I love people who harness themselves, an ox to a heavy cart, who pull like water buffalo, with massive patience, who strain in the mud and the muck to move things forward, who do what has to be done, again and again."
- Marge Piercy
On Mon, Aug 25, 2014 at 10:15 AM, myleshorton [email protected] wrote:
To me the biggest issue is that at this point we just don't know what will work, so we want a simple and flexible system. For example, you could imagine having a warm up phase for peers where we put them in a candidate pool that gets some traffic but not as much as the main group. If they do well there, they graduate.
As far as the percentages go, that basically takes the place of weighting, and it's easy to implement. If we get an influx of give mode peers, for example, we might want to increase the percentage of traffic going to them versus fallbacks.
The nice part is that implementing a system where the server has pretty fine grained control over how much traffic goes where is really easy to implement.
On Monday, August 25, 2014, oxtoacart [email protected] wrote:
If by QOS you mean having critical Lantern traffic go only over fallbacks, then cool. If critical Lantern traffic can still go over peers, just less frequently, then I'm not convinced.
Also, IMHO, DNS provides all the indirection we need, using fallbacks.getiantem.org for the Lantern-maintained fallbacks, peers.getiantem.org for peer proxies and roundrobin.getiantem.org for the full pool including fallbacks. I'm not sure how further granularity can be of use at this point, unless we start getting geography sensitive or something like that.
What do you see as the benefit of adding this server-managed domain list?
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53269780.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
—
Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53277213.
Yeah I was just thinking about that. Maybe we can both put in some work on an lep for the dynamic pool config, but maybe we do your simpler proposal now in 1.4.7?
On Monday, August 25, 2014, oxtoacart [email protected] wrote:
Okay, I'm sold on doing it.
Regarding implementation, the one novel thing here is that we'll need some way of reconfiguring flashlight on the fly, which we don't currently have, or alternately we could instruct flashlight to grab the list of domains directly from the network.
Cheers, Ox
"I love people who harness themselves, an ox to a heavy cart, who pull like water buffalo, with massive patience, who strain in the mud and the muck to move things forward, who do what has to be done, again and again."
- Marge Piercy
On Mon, Aug 25, 2014 at 10:15 AM, myleshorton <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
To me the biggest issue is that at this point we just don't know what will work, so we want a simple and flexible system. For example, you could imagine having a warm up phase for peers where we put them in a candidate pool that gets some traffic but not as much as the main group. If they do well there, they graduate.
As far as the percentages go, that basically takes the place of weighting, and it's easy to implement. If we get an influx of give mode peers, for example, we might want to increase the percentage of traffic going to them versus fallbacks.
The nice part is that implementing a system where the server has pretty fine grained control over how much traffic goes where is really easy to implement.
On Monday, August 25, 2014, oxtoacart <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
If by QOS you mean having critical Lantern traffic go only over fallbacks, then cool. If critical Lantern traffic can still go over peers, just less frequently, then I'm not convinced.
Also, IMHO, DNS provides all the indirection we need, using fallbacks.getiantem.org for the Lantern-maintained fallbacks, peers.getiantem.org for peer proxies and roundrobin.getiantem.org for the full pool including fallbacks. I'm not sure how further granularity can be of use at this point, unless we start getting geography sensitive or something like that.
What do you see as the benefit of adding this server-managed domain list?
— Reply to this email directly or view it on GitHub < https://github.com/getlantern/lantern/issues/1719#issuecomment-53269780>.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
—
Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53277213.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53278113.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
The easiest way might be for flashlight to be the one doing the check-ins.
On Monday, August 25, 2014, Adam Fisk [email protected] wrote:
Yeah I was just thinking about that. Maybe we can both put in some work on an lep for the dynamic pool config, but maybe we do your simpler proposal now in 1.4.7?
On Monday, August 25, 2014, oxtoacart <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
Okay, I'm sold on doing it.
Regarding implementation, the one novel thing here is that we'll need some way of reconfiguring flashlight on the fly, which we don't currently have, or alternately we could instruct flashlight to grab the list of domains directly from the network.
Cheers, Ox
"I love people who harness themselves, an ox to a heavy cart, who pull like water buffalo, with massive patience, who strain in the mud and the muck to move things forward, who do what has to be done, again and again."
- Marge Piercy
On Mon, Aug 25, 2014 at 10:15 AM, myleshorton [email protected] wrote:
To me the biggest issue is that at this point we just don't know what will work, so we want a simple and flexible system. For example, you could imagine having a warm up phase for peers where we put them in a candidate pool that gets some traffic but not as much as the main group. If they do well there, they graduate.
As far as the percentages go, that basically takes the place of weighting, and it's easy to implement. If we get an influx of give mode peers, for example, we might want to increase the percentage of traffic going to them versus fallbacks.
The nice part is that implementing a system where the server has pretty fine grained control over how much traffic goes where is really easy to implement.
On Monday, August 25, 2014, oxtoacart [email protected] wrote:
If by QOS you mean having critical Lantern traffic go only over fallbacks, then cool. If critical Lantern traffic can still go over peers, just less frequently, then I'm not convinced.
Also, IMHO, DNS provides all the indirection we need, using fallbacks.getiantem.org for the Lantern-maintained fallbacks, peers.getiantem.org for peer proxies and roundrobin.getiantem.org for the full pool including fallbacks. I'm not sure how further granularity can be of use at this point, unless we start getting geography sensitive or something like that.
What do you see as the benefit of adding this server-managed domain list?
— Reply to this email directly or view it on GitHub < https://github.com/getlantern/lantern/issues/1719#issuecomment-53269780>.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
—
Reply to this email directly or view it on GitHub < https://github.com/getlantern/lantern/issues/1719#issuecomment-53277213>.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53278113 .
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Yes, I think it would be easiest for flashlight to do the checkins. We talked the other day about the Lantern Go port, and this is starting to get into some of the things that we'll need to figure out for that, like managing and updating configuration.
I would vote for just doing the simple version with a couple of hardcoded domains for now, so that we can get this release out the door and start having peers at least proxy web traffic. Especially once we've implemented auto-update, I see these sorts of dynamic config fetching schemes as being not so important, since I've found that a lot of times, a significant config change doesn't happen without an accompanying code change anyway.
Per discussion with @myleshorton, I've updated flashlight to support round robin (actually randomly routed) through multiple servers that are configured via YAML. The servers have weights, which determine how many requests each server gets relative to the others. The servers also specify a QOS to indicate what kind of quality of service they provide, and clients can choose to set the X-Flashlight-QOS header to request a particular quality of service.
Here's an example YAML that we might use to fix this bug, note in particular the client:servers section.
configdir: .
addr: localhost:10080
portmap: 0
role: client
client:
servers:
roundrobin:
host: roundrobin.getiantem.org
port: 443
masqueradeas: cdnjs.com
rootca: ""
insecureskipverify: false
dialtimeoutmillis: 0
keepalivemillis: 0
weight: 1000000
qos: 5
fallbacks:
host: fallbacks.getiantem.org
port: 443
masqueradeas: cdnjs.com
rootca: ""
insecureskipverify: false
dialtimeoutmillis: 0
keepalivemillis: 0
weight: 1
qos: 10
peers:
host: peers.getiantem.org
port: 443
masqueradeas: cdnjs.com
rootca: ""
insecureskipverify: false
dialtimeoutmillis: 0
keepalivemillis: 0
weight: 1
qos: 1
shoulddumpheaders: false
host: ""
instanceid: ""
statsaddr: ""
country: xx
dumpheaders: false
cpuprofile: ""
memprofile: ""
parentpid: 0
Nice! I love the addition of all the config fields in there -- really nice. I'll review, and we'll get this in. Good stuff.
Here's what I've done so far:
- Updated flashlight to support weighted round-robin with QOS, configured via YAML
- Added optional polling of cloud-based YAML from flashlight (see https://s3.amazonaws.com/lantern_config/cloud.yaml)
- Incorporated the new flashlight into Lantern. A lot of parameters that we previously got from the S3Config are now sourced from the cloud-based YAML, so they are not passed at runtime
- Updated critical path signaling traffic to request a high QOS (10)
@myleshorton Can you please take care of the peerscanner changes to support the new fallbacks and peers subdomains, and then update the file on S3 and the default flashlight config in config.go to use those instead of roundrobin (which shouldn't be used at all anymore)?
Will do Ox! Does it currently poll s3?
On Wednesday, August 27, 2014, oxtoacart [email protected] wrote:
Per discussion with @myleshorton https://github.com/myleshorton, I've updated flashlight to support round robin (actually randomly routed) through multiple servers that are configured via YAML. The servers have weights, which determine how many requests each server gets relative to the others. The servers also specify a QOS to indicate what kind of quality of service they provide, and clients can choose to set the X-Flashlight-QOS header to request a particular quality of service.
Here's an example YAML that we might use to fix this bug, not in particular the client:servers section.
configdir: .addr: localhost:10080portmap: 0role: clientclient: servers: roundrobin: host: roundrobin.getiantem.org port: 443 masqueradeas: cdnjs.com rootca: "" insecureskipverify: false dialtimeoutmillis: 0 keepalivemillis: 0 weight: 1000000 qos: 5 fallbacks: host: fallbacks.getiantem.org port: 443 masqueradeas: cdnjs.com rootca: "" insecureskipverify: false dialtimeoutmillis: 0 keepalivemillis: 0 weight: 1 qos: 10 peers: host: peers.getiantem.org port: 443 masqueradeas: cdnjs.com rootca: "" insecureskipverify: false dialtimeoutmillis: 0 keepalivemillis: 0 weight: 1 qos: 1 shoulddumpheaders: falsehost: ""instanceid: ""statsaddr: ""country: xxdumpheaders: falsecpuprofile: ""memprofile: ""parentpid: 0
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1719#issuecomment-53572867.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89