Patrik Nordwall
64a1fb0235
Rename a few things, see #944
...
* hashKey
* hashMapping ConsistentHashMapping
* withHashMapper ConsistentHashMapper
2012-09-17 13:24:18 +02:00
Patrik Nordwall
b4f5948340
Remove router benchmark, see #944
2012-09-17 12:12:19 +02:00
Patrik Nordwall
48a0fda991
Java doc sample for consistent hashing router, see #944
...
* Allow return null as undefined ConsistentHashMapping
2012-09-17 11:40:06 +02:00
Patrik Nordwall
d59612609f
Handle FromConfig in withFallback also, see #944
2012-09-17 09:39:35 +02:00
Patrik Nordwall
08dbc4d235
Incorporate minor review feedback, see #944
2012-09-17 09:30:52 +02:00
Patrik Nordwall
50fc5a03a2
Complete unfinished ConsistentHashingRouterDocSpec, see #944
2012-09-14 14:28:47 +02:00
Patrik Nordwall
48d8a09075
Remove note about redis client, completely different impl, see #944
2012-09-14 13:53:04 +02:00
Patrik Nordwall
a4dd6b7547
Support partial function to map message to hash key, see #944
...
* Partial function, ConsistentHashRoute, for Scala API
* withConsistentHashMapping ConsistentHashMapping for
Java API
* Updated documentation
2012-09-14 13:47:58 +02:00
Patrik Nordwall
e3bd02b82c
Optimized ConsistentHash with array and binarySearch, see #944
...
* Benchmarked with https://gist.github.com/3720666
* Instead of using TreeMap and rangeImpl this uses
an sorted array of hash values of the nodes, and
uses binarySearch in java.util.Arrays to find
next node clockwise
* Benchmarked with https://gist.github.com/3720666
* Benchmark results show improvement from 500 kmsg/s
to 700 kmsg/s, round-robin handles 1300 kmsg/s
2012-09-14 11:06:55 +02:00
Patrik Nordwall
a515c28e93
Correction, get from ref first, see #944
2012-09-13 22:04:22 +02:00
Patrik Nordwall
5c20c07199
Use tuple to update ConsistentHash and routees together, see #944
2012-09-13 20:44:17 +02:00
Patrik Nordwall
5a90d7198c
Improvements based on review feedback, see #944
2012-09-13 18:06:35 +02:00
Patrik Nordwall
d74464ba50
Move MurmurHash to separate file due to license header, see #944
...
* Also removed unused 'class MurmurHash', we only use
'object MurmurHash'
2012-09-13 14:25:25 +02:00
Patrik Nordwall
ea78e6d805
Documentation of constent hashing router, see #944
...
* Document sample to illustrate usage
* Rewrote RouterViaConfig to real DocSpec
* Added configuration snippets for all router types
2012-09-11 20:51:26 +02:00
Patrik Nordwall
f6dcee423b
Implement ConsistentHashingRouter, see #944
...
* Added trait RouterEnvelope to handle Broadcast and
ConsistentHashableEnvelope in same way, could also be useful
for custom routers
2012-09-11 20:51:09 +02:00
Patrik Nordwall
521d20ba73
Make ConsistentHash immutable, see #944
...
* Makes it thread safe
* Also changed two scary (mutable Array) fields in MurmurHash to private
* Note in migration guide about changed api for ConsistentHash
2012-09-11 20:51:02 +02:00
Patrik Nordwall
705c118ea2
Pick correct node at the ring boundary and change to TreeMap, see #944
...
* The small problem was that it picked node counter clockwise
in the ring for all, except for crc < firstKey, where it picked firstKey
instead of lastKey
* Changed to clockwise selection and correct selection
at the boundary, i.e. hash > lastKey => firstKey
and hash < firstKey => firstKey
* Changed to TreeMap instead of the 2 separate TreeSet and Map
collections
* Cleanup and documentation
2012-09-11 20:50:46 +02:00
Patrik Nordwall
e55cde2591
Rename to allowLocalRoutees in code also, see #2103
2012-09-11 20:49:08 +02:00
Viktor Klang (√)
87b3813c07
Merge pull request #696 from akka/wip-2488-√
...
#2488 - Deleting the NonFatalSpec, is tested in the stdlib now.
2012-09-11 11:31:41 -07:00
Patrik Nordwall
b413515ce2
Merge pull request #653 from akka/wip-2103-cluster-routers-patriknw
...
Cluster aware routers, see #2103
2012-09-11 10:13:27 -07:00
Patrik Nordwall
ac16d567ea
Improvements based on review comments from √, see #2103
2012-09-11 19:11:20 +02:00
Patrik Nordwall
324ef78e53
Merge branch 'master' into wip-2103-cluster-routers-patriknw
2012-09-11 17:01:28 +02:00
Patrik Nordwall
58520d8ecd
Unbork wrong merge of ClusterDeathWatchSpec
2012-09-11 16:59:59 +02:00
Patrik Nordwall
13515088c7
Merge branch 'master' into wip-2103-cluster-routers-patriknw
...
Conflicts:
akka-docs/project/migration-guide-2.0.x-2.1.x.rst
2012-09-11 16:41:26 +02:00
Patrik Nordwall
4031518d46
Remove println in test
2012-09-11 15:39:48 +02:00
Viktor Klang
77ca7f5cae
#2488 - Deleting the NonFatalSpec, is tested in the stdlib now.
2012-09-11 15:37:19 +02:00
Patrik Nordwall
c7e2f720df
Merge pull request #694 from akka/wip-2455-cluster-experimental-patriknw
...
Mark cluster as experimental, see #2455
2012-09-11 06:27:02 -07:00
Patrik Nordwall
3066ddad44
Incorparate review feedback, see #2455
2012-09-11 15:22:17 +02:00
Patrik Nordwall
911ef6b97e
Merge pull request #668 from akka/wip-1588-cluster-death-watch-patriknw
...
Death watch hooked up with cluster failure detector, see #1588
2012-09-11 06:13:44 -07:00
Patrik Nordwall
018a949678
Merge branch 'master' into wip-2103-cluster-routers-patriknw
...
Conflicts:
akka-cluster/src/multi-jvm/scala/akka/cluster/ClientDowningNodeThatIsUnreachableSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/ClientDowningNodeThatIsUpSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/ConvergenceSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/LeaderDowningNodeThatIsUnreachableSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/LeaderElectionSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/MultiNodeClusterSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/SingletonClusterSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/SplitBrainSpec.scala
akka-cluster/src/multi-jvm/scala/akka/cluster/UnreachableNodeRejoinsClusterSpec.scala
akka-cluster/src/test/scala/akka/cluster/ClusterSpec.scala
akka-remote/src/main/scala/akka/routing/RemoteRouterConfig.scala
2012-09-11 10:55:47 +02:00
Björn Antonsson
b9a6278024
Ignoring stress test in SuperVisorHierarchySpec while working on fix. See 2368
2012-09-11 10:16:16 +02:00
Patrik Nordwall
c92e3a5af2
Merge pull request #691 from akka/wip-2485-routee-supervision-patriknw
...
received Supervise from unregistered child Actor, see #2485
2012-09-11 00:28:55 -07:00
Patrik Nordwall
4b8a73cc7f
Add comment about attachChild
2012-09-11 09:28:05 +02:00
Patrik Nordwall
6d51d6d647
Explain use of existenceConfirmed, see #1588
2012-09-11 09:23:09 +02:00
Patrik Nordwall
a6a2eba231
Mark cluster as experimental, see #2455
...
* Speparate section in docs, explaining what experimental means
* Renamed the artifactId to akka-cluster-experimental and
akka-remote-tests-experimental
2012-09-11 09:18:00 +02:00
Patrik Nordwall
2cd817c3c0
Merge pull request #693 from akka/wip-2484-RoutingSpec-iffy-patriknw
...
Make RoutingSpec more robust, see #2484
2012-09-10 08:19:09 -07:00
Viktor Klang
d73c27106f
Removing the smartypants setting from setup.py
2012-09-10 16:38:49 +02:00
Viktor Klang
3cac192841
There was an error in the placement of the smartypants setting, fixed that and added exit code to the output if pygment installation fails.
2012-09-10 16:37:29 +02:00
Patrik Nordwall
bb5ab968db
Make RoutingSpec more robust, see #2484
2012-09-10 16:20:38 +02:00
Patrik Nordwall
d93a0d5863
Fix scaladoc code snippets for routers
2012-09-10 15:05:21 +02:00
Patrik Nordwall
c8cfe0eb1f
Incorparate feedback from rkuhn, see #2103
2012-09-10 14:41:51 +02:00
Patrik Nordwall
7cf6ab54c8
Deploy not needed for programatically defined cluster router, see #2103
...
* This also removes the need for the withClusterRouter sugar
* Improved the apply and constructors for ClusterRouterSettings, since
that will be user api instead
2012-09-10 14:11:03 +02:00
Patrik Nordwall
2e537af78a
attachChild in ClusterRouteeProvider also, see #2485
2012-09-10 13:13:59 +02:00
Patrik Nordwall
14f66d9c05
received Supervise from unregistered child Actor, see #2485
...
* The problem was that RemoteRouteeProvider didn't attachChild
when creating routees
* Added test for it
2012-09-10 11:45:13 +02:00
Patrik Nordwall
19d01442ec
Merge pull request #675 from akka/wip-2473-npe-subscribe-patriknw
...
Fix NPE due to initialization order, see #2473
2012-09-10 00:39:55 -07:00
Viktor Klang (√)
edaa9520ce
Merge pull request #680 from akka/wip-autoversion-√
...
Switching to autoselecting scala version for the artifact of akka-cluste...
2012-09-09 14:51:38 -07:00
Viktor Klang (√)
bef089e288
Merge pull request #682 from akka/wip-2427-√
...
#2427 - Hiding AkkaSpec from FSMDocSpec
2012-09-09 14:51:04 -07:00
Viktor Klang (√)
4e7e89528f
Merge pull request #683 from akka/wip-2476b-√
...
#2476 - Fixing broken links to typesafe.com (master)
2012-09-09 14:48:34 -07:00
Viktor Klang (√)
da8a62545d
Merge pull request #686 from akka/wip-2432-√
...
#2432 - turning off smarty pants so that our quotes don't get mangled in...
2012-09-09 14:47:51 -07:00
Viktor Klang (√)
6fdeff44b6
Merge pull request #688 from akka/wip-2441-√
...
#2441 - Updating howto.rst to include all the summer of blog posts and r...
2012-09-09 14:46:52 -07:00