Commit graph

19348 commits

Author SHA1 Message Date
Patrik Nordwall
3eceb241e1 make cpu vs latency configurable, #20625
* the actual default values will be measured and tuned later
2016-06-10 16:08:10 +02:00
Patrik Nordwall
39f6a9dcf3 Merge pull request #20759 from akka/wip-20715-remote-deployment-patriknw
make remote deployment work with Artery, #20715
2016-06-10 16:07:17 +02:00
Patrik Nordwall
5c234940c6 make remote deployment work with Artery, #20715
There were two related problems with remote deployment when
using Artery.

* DaemonMsgCreate is not a SystemMessage, but must be sent over the control stream because
  remote deployment process depends on message ordering for DaemonMsgCreate and Watch messages.
  It must also be sent over the ordinary message stream so that it arrives (and creates the
  destination) before the first ordinary message arrives.
* The first point solves the creation of the remote deployed actor but it's not enough.
  Resolve of the recipient actor ref may still happen before the actor is created. This
  is solved by retrying the resolve for the first message of a remote deployed actor.
2016-06-10 15:15:57 +02:00
Johan Andrén
d6c048f59a A simpler ActorRefProvider config #20649 (#20767)
* Provide shorter aliases for the ActorRefProviders #20649
* Use the new actorefprovider aliases throughout code and docs
* Cleaner alias replacement logic
2016-06-10 15:04:13 +02:00
Patrik Nordwall
3f72e7dad1 Merge pull request #20754 from akka/wip-review-old-patriknw
system messages to deadLetters
2016-06-10 15:01:07 +02:00
Patrik Nordwall
7ce6dffabf send dropped system messages to deadLetters
* publish remote lifecycle event for quarantined
2016-06-10 13:21:17 +02:00
Patrik Nordwall
7a1a316e8a reduce allocations with specialized ImmutableLongMap (#20750)
* reduce allocations with specialized ImmutableLongMap

* backed by arrays, allocation free lookups with binary search
* use it for UID -> Association Map
* pass Association in InboundEnvelope to reduce to only
  one lookup per incoming message
* use ImmutableLongMap instead of the QuarantinedUIDSet
2016-06-10 13:04:23 +02:00
Patrik Nordwall
00764487d9 Merge pull request #20720 from akka/wip-optimize-allocations-patriknw
reduce allocations in Artery
2016-06-07 19:00:26 +02:00
Patrik Nordwall
64a61d5a4c object pool for InboundEnvelope 2016-06-07 18:58:59 +02:00
Patrik Nordwall
2e0986254c improve the test somewhat 2016-06-07 18:58:59 +02:00
Patrik Nordwall
a814034342 Option value class, to avoid allocations for optional sender 2016-06-07 18:58:59 +02:00
Patrik Nordwall
c808522f6d optimize access to association UniqueAddress 2016-06-07 18:58:58 +02:00
Patrik Nordwall
78797e537a adjust default-remote-dispatcher settings
* and fix materializer creation
2016-06-07 18:58:58 +02:00
Patrik Nordwall
0b953a54b2 optimize quarantine uid check
* specialized uid Set
2016-06-07 18:58:58 +02:00
Patrik Nordwall
6240acf25e improve performance of serializer lookup by id
* Map.apply allocates Some
2016-06-07 17:47:07 +02:00
Patrik Nordwall
08703d6191 avoid unessary wakeup in SendQueue 2016-06-07 17:47:07 +02:00
Patrik Nordwall
7a4d2386a6 Merge pull request #20695 from akka/wip-20589-blackhole-patriknw
test support for blackhole in Artery, #20589
2016-06-07 16:54:06 +02:00
Patrik Nordwall
45e0c86120 Merge pull request #20712 from akka/wip-remote-tests-patriknw
port some remote tests to Artery
2016-06-07 15:58:33 +02:00
Patrik Nordwall
ea231b1cbc test support for blackhole in Artery, #20589 2016-06-07 15:47:12 +02:00
drewhk
f31c2701a8 Merge pull request #20640 from drewhk/wip-artery-flightrecorder-drewhk
Flight recorder, initial data structure sketch
2016-06-07 12:55:07 +02:00
Endre Sándor Varga
089dd86632 Initial AFR instrumentation 2016-06-07 11:55:24 +02:00
Patrik Nordwall
91fd55ab7f Merge pull request #20657 from akka/wip-send-queue-patrikwn
new send queue
2016-06-03 18:07:40 +02:00
Patrik Nordwall
a97290841f port some remote tests to Artery
* Some are failing and are marked as ignored, will open
  separate issues for those.
* All interesting tests apart from the big RemotingSpec.scala are
  ported. Relevant parts of it should be ported but into smaller
  more focused tests.
2016-06-03 17:27:11 +02:00
Patrik Nordwall
d236b8e152 new queue Source for remote sends
* new SendQueue Source based on agrona ManyToOneConcurrentArrayQueue
* jmh benchmark for send queue
* JMH benchmark for Source.queue, Source.actorRef and the new SendQueue
* inject the queue so that we can start sending to it before materialization
* Get rid of computeIfAbsent in the AssociationRegistry
  by making it possible to send (enque) messages to the
  Association instance immediatly after construction.
2016-06-03 17:23:19 +02:00
Endre Sándor Varga
18a15f33f3 Added reading support for testing 2016-06-03 16:26:10 +02:00
Endre Sándor Varga
38acf442e6 Flight recorder, initial data structure sketch 2016-06-03 16:20:54 +02:00
Patrik Nordwall
b45e7dd51c Merge pull request #20704 from akka/wip-sync-artery-patriknw
sync artery-dev with latest master
2016-06-03 15:54:32 +02:00
Patrik Nordwall
3465a221f0 format with new Scalariform version
* and fix mima issue
2016-06-03 12:56:49 +02:00
Patrik Nordwall
839ec5f167 Merge branch 'master' into wip-sync-artery-patriknw 2016-06-03 11:09:17 +02:00
Daniel Moran
5afb68cd59 -str #20288 Remove obsolete RestartTestStage (#20692) 2016-06-03 10:32:24 +02:00
Patrik Nordwall
c15e04e051 Merge pull request #20700 from akka/wip-20639-restarting-node2-patriknw
test for restarting node, #20639
2016-06-03 09:27:15 +02:00
Patrik Nordwall
4acc1cca6a Merge pull request #20681 from bantonsson/wip-ban-update-scalariform
Update to a working version of Scalariform
2016-06-03 07:20:34 +02:00
gosubpl
54c99d8184 =htp #20648 encoder now encodes all response types, not only successes (#20691)
* #20648 encoder now encodes all response types, not only successes

* #20648 fix by autoformatter
2016-06-02 22:39:20 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Patrik Nordwall
3a4fd52165 Merge pull request #20646 from akka/wip-artery-sample-bug-patriknw
detect wrong Artery protocol
2016-06-02 19:59:51 +02:00
Patrik Nordwall
60111c4886 detect wrong protocol
* used wrong protocol by mistake and got weird errors
  and it was not obvious that the reason was wrong protocol,
  e.g. it created association to itself
* and also set the cachedAssociation
2016-06-02 17:50:44 +02:00
Patrik Nordwall
3afda7fea0 Merge pull request #20694 from akka/wip-port-multi-node-patriknw
port of some remote multi-node tests
2016-06-02 17:44:07 +02:00
Patrik Nordwall
884760badd Merge pull request #20701 from akka/wip-cleaner-patriknw
tryCleanDirectByteBuffer in Artery BufferPool
2016-06-02 17:43:11 +02:00
Patrik Nordwall
cae070bd93 Merge pull request #20616 from akka/wip-17194-DirectByteBuffer-cleaner-patriknw
Attempt cleaning of DirectByteBuffer, #17194
2016-06-02 17:42:10 +02:00
Patrik Nordwall
c1f36d8a43 Merge pull request #20594 from akka/wip-20531-patriknw
gating should not overwrite quarantine, #20531
2016-06-02 17:41:12 +02:00
Konstantin Fedorov
f9922398a7 +htp #19929 NameReceptacle[T].as[B] take Unmarshaller[T, B] instead of FromStringUnmarshaller 2016-06-02 15:27:18 +02:00
Patrik Nordwall
03eaacdbbb Merge pull request #20680 from akka/wip-ByteString.empty-patriknw
use ByteString.empty
2016-06-02 14:37:03 +02:00
Patrik Nordwall
70a72d58bf adjust sample for Artery 2016-06-02 13:56:19 +02:00
Patrik Nordwall
37af15b050 tryCleanDirectByteBuffer in Artery BufferPool 2016-06-02 13:32:08 +02:00
Patrik Nordwall
e90c9b385b Attempt cleaning of DirectByteBuffer, #17194 2016-06-02 13:23:06 +02:00
drewhk
80adee687a Merge pull request #20671 from drewhk/wip-20627-streamlayout-test-timeout-drewhk
#20627: Increase LayoutSpec stresstest patience
2016-06-02 13:21:16 +02:00
Endre Sándor Varga
38c7627ddc #20627: Increase LayoutSpec stresstest patience 2016-06-02 13:20:35 +02:00
Patrik Nordwall
48212778a5 keep the refuseUid along association state transitions, #20531
* keep the refuseUid (old quarantined) when transitioning
  Pass -> Gated -> Pass
* introduced new state WasGated to keep track of the refuseUid
2016-06-02 13:17:31 +02:00
Patrik Nordwall
abb9a1fd9b gating should not overwrite quarantine, #20531
* Reproduced with cluster sample.
  * auto-down=45s
  * node1 and node2 joins
  * suspend node2 (kill -STOP)
  * node1 removes and quarantines node2
  * resume node2 (kill -CONT)
  * node2 receives heartbeat response from node1, which
    is not expected since node2 is supposed to be quarantined
  * the reason is that the quarantine is overwritten by gating
2016-06-02 13:17:31 +02:00
Konrad Malawski
b9ce2c94f6 =htc #20214 disabling SNI per-connection now works (passing though sslconfig) (#20621) 2016-06-02 13:13:11 +02:00