Commit graph

1697 commits

Author SHA1 Message Date
Andrei Pozolotin
7b9f77a073 + akka-cluster-metrics: new akka module
* new akka module split from akka-cluster
* provide sigar provisioning
* fix ewma usage
* resolve #16121
* see #16354
2015-01-19 10:23:54 -06:00
Patrik Nordwall
a1d7199a42 =rem #16623: Fix concurrent reliable delivery actors
(cherry picked from commit 4f7c90660226b05edc3581454d18fd53a4762802)

Conflicts:
	project/AkkaBuild.scala
2015-01-19 10:03:40 +01:00
Roland Kuhn
93ef92bcfb =per #16659 fix deserialization of SnapshotHeader
This needs to be done differently for Scala 2.10 and 2.11 since
scala.Option’s serialVersionUID changed between these series.
2015-01-16 14:34:59 +01:00
Roland Kuhn
a4a985035e Merge pull request #16575 from akka/wip-15864-remove-ømq-∂π
-zer #15864 remove zeromq module
2015-01-16 10:19:45 +01:00
Roland Kuhn
239619e68f -zer #15864 remove zeromq module 2015-01-15 20:19:35 +01:00
Konrad Malawski
1c38b8191a =pro update genjavadoc version to enable crosspublishing 2015-01-12 16:19:39 +01:00
Martynas Mickevičius
86a5b3d9d7 Merge pull request #16451 from 2m/wip-optional-samples
=pro make samples optional
2014-12-09 19:39:59 +01:00
Martynas Mickevicius
91d129b01e =pro #16418 add settings from AutoPlugins to transformed samples 2014-12-03 16:53:43 +01:00
Martynas Mickevicius
74934c0b5c =pro make samples optional 2014-12-03 16:40:59 +01:00
Martynas Mickevičius
4346a03f96 Merge pull request #16371 from 2m/wip-16371-enable-cross-builds
=pro #16371 enable cross builds (forward-port)
2014-12-01 19:53:43 +02:00
Roland Kuhn
ecffca8f6b Merge pull request #16096 from 2m/wip-sbt-first-autoplugins
=pro upgrade to latest sbt and add first auto plugins
2014-12-01 12:45:52 +01:00
Martynas Mickevičius
932f8a9bd7 =pro #16371 enable cross builds
* changed zeromq-scala-binding library
* modified build-release task to include distributions from cross builds
* removed tar-zip step from release script, because tgz package is not used from the website
* release script now releases for all crossScalaVersions
* dry run is the default now
2014-11-30 15:53:41 +02:00
Martynas Mickevičius
22334da2a1 =pro upgrade to latest sbt and add first auto plugins
* RootSettings plugin contains settings for root project
* other auto plugins that are meant only for root project depend on RootSettings
* other auto plugins that are meant for every project are enabled by default reducing boilerplate
2014-11-30 15:34:59 +02:00
Konrad 'ktoso' Malawski
d39427b3d9 +pro #16372 bring akka-bench-jmh benchmarks to master 2014-11-23 22:39:45 +01:00
Martynas Mickevičius
2f321d12b3 =pro load sample builds with project dependencies
* load sample builds from their definitions and replace library dependencies with project ones
* remove redefined sample build definitions
* test osgi sample by running a maven command
2014-11-13 18:56:02 +02:00
Max Cai
3ecdf40806 =doc Describe how to use microKernel with sbt-native-packager
(cherry picked from commit 6a79ad1287fb776eac1cac07a8a45dc0b597cede)

Conflicts:
	project/plugins.sbt
2014-10-31 11:30:05 +01:00
Martynas Mickevičius
9311e9474e =pro Grab binary version for MIMA combatibility testing from a setting.
Thanks to @jsuereth
2014-10-28 15:13:13 +02:00
Björn Antonsson
b78096b560 Merge pull request #15893 from akka/wip-cleaner-scala-specific-version-dependencies-ban
=pro Cleaner way to declare Scala Version dependent dependencies
2014-09-16 13:14:08 +02:00
Martynas Mickevicius
7bc438195f =pro do not push releasing* branch
Tag is more than plenty.
2014-09-16 11:01:39 +02:00
Björn Antonsson
bb75040f88 =pro Cleaner way to declare Scala Version dependent dependencies
Port of PR #15887 to master
2014-09-16 10:53:04 +02:00
Konrad Malawski
1135a53c65 Merge pull request #15890 from ktoso/fix-15843-renamepackage-ktoso
=rem #15843 rename package of QuietReporter
2014-09-15 16:14:17 +02:00
Konrad 'ktoso' Malawski
aefa38d129 =rem #15843 rename package of QuietReporter
Resolves #15843
2014-09-15 14:47:41 +02:00
Patrik Nordwall
e8bb4f1d5b =pro #13928 Run multi-jvm tests in samples in normal test target
* fix scalariform formatting in MutiNode
2014-09-05 12:16:49 +02:00
Roland Kuhn
07df1efa5e remove old scalaBinaryVersion workaround 2014-09-05 11:13:49 +02:00
Viktor Klang
cd8e97c060 +act - 15757 - Reworks implementation of ActorSystem shutdown
* deprecates awaitTermination, shutdown and isTerminated
  * introduces a terminate-method that returns a Future[Unit]
  * introduces a whenTerminated-method that returns a Future[Unit]
  * simplifies the implementation by removing blocking constructs
  * adds tests for terminate() and whenTerminated
2014-08-25 15:49:28 +02:00
Patrik Nordwall
c517de4f21 Merge pull request #15669 from akka/wip-15664-dist-filenames-patriknw
=pro #15664 Use scala version in dist files
2014-08-20 07:39:46 +02:00
Ben McCann
36943a5444 Security: use https to fetch repo artifacts. See http://blog.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/ 2014-08-19 07:21:14 -07:00
Patrik Nordwall
c4ee032ead =pro #15664 Use scala version in dist files 2014-08-15 11:44:59 +02:00
Viktor Klang
6a96c88430 =pro #15616 UTF-8 charset and exception with offending file (for Validation) 2014-08-05 12:04:42 +02:00
Konrad 'ktoso' Malawski
90bc347607 +per #13815 akka-persistence-tck based on @krasserm's work
Original here: https://github.com/krasserm/akka-persistence-testkit

New features:
* merged martin's tests
* usable from java (junit 4)
* simple bench test, which helps checking if ordering is perserved under
  bigger workloads and simple perf checking
* does NOT include tests for already deprecated features (deleteMessages)
* docs

Resolves #13815

Conflicts:
	project/AkkaBuild.scala
2014-07-14 19:39:30 +02:00
Heiko Seeberger
ea13e6d869 Upgrade to Mockito 1.9.5 (closes #15493) 2014-07-04 09:45:35 +02:00
xuwei-k
45ff77e4f9 =act #15395 update typesafe config API URL 2014-06-20 14:45:07 +02:00
Konrad 'ktoso' Malawski
d51b79c95a !per persistAsync
Breaks binary compatibility because adding new methods to Eventsourced
trait. Since akka-persistence is experimental this is ok, yet
source-level compatibility has been perserved thankfuly :-)

Deprecates:
* Rename of EventsourcedProcessor -> PersistentActor
* Processor -> suggest using PersistentActor
* Migration guide for akka-persistence is separate, as wel'll deprecate in minor versions (its experimental)
* Persistent as well as ConfirmablePersistent - since Processor, their
  main user will be removed soon.

Other changes:
* persistAsync works as expected when mixed with persist
* A counter must be kept for pending stashing invocations
* Uses only 1 shared list buffer for persit / persistAsync
* Includes small benchmark
* Docs also include info about not using Persistent() wrapper
* uses java LinkedList, for best performance of append / head on
  persistInvocations; the get(0) is safe, because these msgs only
  come in response to persistInvocations
* Renamed internal *MessagesSuccess/Failure messages because we kept
  small mistakes seeing the class "with s" and "without s" as the same
* Updated everything that refered to EventsourcedProcessor to
  PersistentActor, including samples

Refs #15227

Conflicts:
	akka-docs/rst/project/migration-guides.rst
	akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala
	akka-persistence/src/main/scala/akka/persistence/Persistent.scala
	akka-persistence/src/test/scala/akka/persistence/PersistentActorSpec.scala
	project/AkkaBuild.scala
2014-06-10 11:09:12 +02:00
Björn Antonsson
0c6d584adf Merge pull request #15335 from akka/wip-add-watchSources-for-rst-ban
=pro Add watchSources for *.rst to akka-docs (Forward Port)
2014-06-05 09:40:39 +02:00
Björn Antonsson
a917e2f816 =pro Add watchSources for *.rst to akka-docs 2014-06-03 10:29:43 +02:00
Martynas Mickevicius
e72945b544 =proj #15333 Update to sbt 0.13.5 2014-06-03 09:49:47 +02:00
Björn Antonsson
1e6ff06f8c =pro #15290 Make validatePullRequest run all tests 2014-05-27 08:11:29 +02:00
Björn Antonsson
cd7e456889 =pro #15116 Update Typesafe Config to 1.2.1 2014-05-21 10:16:24 +02:00
Konrad 'ktoso' Malawski
0ab8e2f37a =tes #15165 MetricsKit should not nullpointer on racy graphite usage
The report() call can come from multiple threads in our code,
yet it was opening/closing a shared graphite client instance in this
method, causing NPE when periodic reporting kicked in during a manual
report() call. We want to be able to do this - thus rewrite to safe impl

Removed metrics-graphite dependency, replaced by in house impl.
The previous was using discrete write() calls, which could be entangled
when called from multiple threads, and produce invalid metric lines.
Current impl is simpler and threadsafe, as the lock for write(String) to
aquired for the entire string lenght's write (unlike multiple write calls).

Resolves #15165
2014-05-20 01:22:01 +02:00
Martynas Mickevicius
fdcd964165 =pro #15031 separate sbt build file for every module 2014-05-14 10:05:09 +02:00
Martynas Mickevicius
07ca8d5a8d =pro #15166 do not redefine executeTests 2014-05-12 15:36:49 +02:00
Konrad 'ktoso' Malawski
684c0279ec =act,tes Initial draft of internal MetricsKit
Note: This is NOT aimed to provide an micro-benchmarking solution.
The goal is to provide data for broad trend analysis. For techniques
that fight the inliner and other specialised techniques, refer to JMH.

+ custom console and graphite reporters
  - had to be custom because it's not possible to add custom metric
    types to the existing reporters
+ initial hdr.Histogram histogram() provider, see
  http://latencyutils.github.io/LatencyUtils/
+ Not using timers provided by Metrics, instead use the above histogram
+ Added average Actor size measurement
+ Measuring the "blocking time" when an actor is created, before we fire
  of the async part of this process; Measures in loop and will fluctuate
  a lot. Times are in `us` -- System.nanoTime should provide good enough
  resolution.
+ Measuring total actor creation time by using
  `KnownOpsInTimespanTimer`, which given a known number of ops, in a
  large amount of time, roughtly estimates time per one operation.
  // Yes, we are aware of the possibility of GC pauses and other horrors
+ All classes are `private[akka]`, we should not encourage people to use
  this yet
+ Counters use Java 8's `LongAdder`, which is metric's private;
  The new trend in Java land will be copy paste-ing this class ;)
+ Metrics are logged to Graphite, so we can long-term analyse these
+ Reporters are configurable using typesafe-config

! I'm not very happy about how I work around Metrics not being too open
  for adding additional custom metrics. Seems like a hack at places.
  I will consider removing the Metrics dependency all together.
  numbers

Example output:

```
-- KnownOpsInTimespanTimer-------------------------------------------
  actor-creation.total.creating-100000-actors.Props|new-EmptyArgsActor|…||-same
               ops = 100000
              time = 1.969 s
             ops/s = 50782.22
               avg = 19.69 μs

-- AveragingGauge---------------------------------------------------
  actor-creation.Props|new-EmptyArgsActor|…||-same.avg-mem-per-actor
                avg = 439.67
```
2014-05-08 14:52:39 +02:00
Martynas Mickevicius
ee5ea5e13f =pro #15031 move build logic into separate files 2014-05-07 15:07:05 +02:00
Konrad 'ktoso' Malawski
293ecb09f9 =build #15103 Add Build start/finish events
These are visible on the grafana dashboard,
in order to be able to see on which commit
stats have been recorded.

It's enabled via: `-Dakka.sbt.graphite=true`

Resolves #15103
2014-05-07 10:23:21 +02:00
Martynas Mickevicius
78187064cf =pro #15018 update to sbt 0.13.5-RC1 which has publish fix 2014-05-02 11:04:06 +02:00
Konrad Malawski
164050ad4c Merge pull request #15069 from ktoso/wip-better-stats-keys
=pro all non-words must be replaced with _ for statsd keys
2014-04-29 11:01:02 +02:00
Konrad 'ktoso' Malawski
69ffd006cf =pro all non-words must be replaced with _, for statsd keys 2014-04-29 11:00:11 +02:00
Martynas Mickevicius
7b35ded34e =pro #15031 use sbt-unidoc plugin 2014-04-28 10:12:46 +02:00
Konrad Malawski
d84d583585 Merge pull request #15060 from ktoso/wip-15021-measure-each-test-perf-ktoso
build #15021,#13755 Emit statsd events during build
2014-04-26 01:14:01 +02:00
Konrad Malawski
2d56fbe91c build #15021,#13755 Emit statsd events during build 2014-04-25 17:12:59 +02:00