Alex Dadgar
0d001d05f3
Fix incorrect deletion of node conn
...
This PR fixes an issue where if the client has multiple connections to a
server, a single connection closing would cause the routing to the node
to be lost.
2018-02-15 13:59:03 -08:00
Alex Dadgar
dab5dc70e1
allow setting timeout on any api config
2018-02-15 13:59:03 -08:00
Alex Dadgar
2a2e1838ee
Update client2.hcl
2018-02-15 13:59:03 -08:00
Alex Dadgar
4f2725bb98
Enhance API pkg to utilize Server's Client Tunnel
...
This PR enhances the API package by having client only RPCs route
through the server when they are low cost and for filesystem access to
first attempt a direct connection to the node and then falling back to
a server routed request.
2018-02-15 13:59:03 -08:00
Alex Dadgar
de727a6eed
fix flaky gc tests
2018-02-15 13:59:03 -08:00
Alex Dadgar
4f332ff1c2
feedback and rebasing
2018-02-15 13:59:03 -08:00
Alex Dadgar
e05cd42063
Use helper for forwarding
2018-02-15 13:59:03 -08:00
Alex Dadgar
0fb2b5c3f3
HTTP agent
2018-02-15 13:59:03 -08:00
Alex Dadgar
349485028c
Server side impl + touch ups
2018-02-15 13:59:02 -08:00
Alex Dadgar
ce37deebf4
client implementation of alloc gc and stats
2018-02-15 13:59:02 -08:00
Alex Dadgar
4ac1e25478
Refactor determining the handler for a node id call
2018-02-15 13:59:02 -08:00
Alex Dadgar
a80ef65291
Code review feedback
2018-02-15 13:59:02 -08:00
Alex Dadgar
b0d0359b59
clarify force
2018-02-15 13:59:02 -08:00
Alex Dadgar
ff79fbcec8
Streaming helper
2018-02-15 13:59:02 -08:00
Alex Dadgar
3e4108634a
Respond to comments
2018-02-15 13:59:02 -08:00
Alex Dadgar
715006a52f
Document server handling of client endpoints
...
This PR adds API documentation noting the change in 0.8 where servers
can handle client endpoints and annotated the endpoints that now have an
optional parameter to specify the node_id.
2018-02-15 13:59:02 -08:00
Alex Dadgar
99c0bdf9d7
Implement MultiplexV2 RPC handling
...
Implements and tests the V2 multiplexer. This will not be used until
several versions of Nomad have been released to mitigate upgrade
concerns.
2018-02-15 13:59:02 -08:00
Alex Dadgar
0706f4e86f
Add Streaming RPC ack
...
This PR introduces an ack allowing the receiving end of the streaming
RPC to return any error that may have occured during the establishment
of the streaming RPC.
2018-02-15 13:59:02 -08:00
Alex Dadgar
ac1a0de833
remove changes to the demo clients
2018-02-15 13:59:02 -08:00
Alex Dadgar
3cbd7e8376
vet
2018-02-15 13:59:02 -08:00
Alex Dadgar
b257812c22
move error
2018-02-15 13:59:02 -08:00
Alex Dadgar
d77b36698c
HTTP and tests
2018-02-15 13:59:02 -08:00
Alex Dadgar
b9541140c2
Server implementation of stream
2018-02-15 13:59:02 -08:00
Alex Dadgar
69dc065366
Client implementation of stream
2018-02-15 13:59:02 -08:00
Alex Dadgar
a1eff9dda6
Server stat/list impl
2018-02-15 13:59:02 -08:00
Alex Dadgar
3c689ba97f
Client Stat/List impl
2018-02-15 13:59:02 -08:00
Alex Dadgar
7e5a30d5ae
Agent logs
2018-02-15 13:59:02 -08:00
Alex Dadgar
c76b311d06
client tests
2018-02-15 13:59:02 -08:00
Alex Dadgar
a9ed7a86e4
Server tests of logs
2018-02-15 13:59:02 -08:00
Alex Dadgar
c677cf8cf5
Forwarding
2018-02-15 13:59:02 -08:00
Alex Dadgar
8e557c9b2a
Refactor client RPCs from server
2018-02-15 13:59:02 -08:00
Alex Dadgar
2b6a7ebd0d
Remove logging
2018-02-15 13:59:01 -08:00
Alex Dadgar
9d479f3d80
test stream framer
2018-02-15 13:59:01 -08:00
Alex Dadgar
d9722faf56
Server streaming
2018-02-15 13:59:01 -08:00
Alex Dadgar
5e7a1a44a2
Logs over RPC w/ lots to touch up
2018-02-15 13:59:01 -08:00
Alex Dadgar
c0e01d8a9e
New RPC Modes and basic setup for streaming RPC handlers
2018-02-15 13:59:01 -08:00
Alex Dadgar
70ff5af8d0
wip fs endpoint
2018-02-15 13:59:01 -08:00
Alex Dadgar
e69506a6cf
Use in-mem rpc
2018-02-15 13:59:01 -08:00
Alex Dadgar
496ab5f654
Remove circular dependency
2018-02-15 13:59:01 -08:00
Alex Dadgar
ebce3f907f
fix lint
2018-02-15 13:59:01 -08:00
Alex Dadgar
e2d1ce8ff2
Fix manager tests and make testagent recover from port conflicts
2018-02-15 13:59:01 -08:00
Alex Dadgar
eade7ff4b5
Fix lint/comments
2018-02-15 13:59:01 -08:00
Alex Dadgar
fa6c90a807
Unjankify the pkg
2018-02-15 13:59:01 -08:00
Alex Dadgar
5618fd43ee
initial round of comment review
2018-02-15 13:59:01 -08:00
Alex Dadgar
6860037d68
Plumb config
2018-02-15 13:59:01 -08:00
Alex Dadgar
5c1ba8fb8c
Change defaults for min use duration
2018-02-15 13:59:01 -08:00
Alex Dadgar
0a047bb3a8
SetServer command actually returns an error if given an invalid server
2018-02-15 13:59:01 -08:00
Alex Dadgar
b97b44a76f
use server manager
2018-02-15 13:59:01 -08:00
Alex Dadgar
13e4564304
code review
2018-02-15 13:59:01 -08:00
Alex Dadgar
5c6b6b865c
Forwarding
2018-02-15 13:59:01 -08:00