Chicago Boss: Routes does not work in production mode?
Chicago Boss: Routes does not work in production mode?
Chicago Boss: Routes does not work in production mode?
I had a similar problem years ago. What you are trying to do is remove an offline node, which as far as I am aware was impossible in earlier versions of mnesia. You can however connect to the cluster using a dummy node named bad@node, and started with a tweaked system.config of the original clustered … Read more
The way the documentation describes the difference between include and include_lib is: include_lib is similar to include, but should not point out an absolute file. Instead, the first path component (possibly after variable substitution) is assumed to be the name of an application. Example: -include_lib(“kernel/include/file.hrl”). The code server uses code:lib_dir(kernel) to find the directory of … Read more
You can use apply/3 which is just a wrapper around :erlang.apply/3. It simply invokes the given function from the module with an array of arguments. Since you are passing arguments as the module and function names you can use variables. apply(:lists, :nth, [1, [1,2,3]]) apply(module_name, method_name, [1, array]) If you want to understand more about … Read more
In Erlang, 5 rem 3. gives 2, and -5 rem 3. gives -2. If I understand your question, you would want -5 rem 3. to give 1 instead, since -5 = -2 * 3 + 1. Does this do what you want? mod(X,Y) when X > 0 -> X rem Y; mod(X,Y) when X < … Read more
28> B1= <<1,2>>. <<1,2>> 29> B2= <<3,4>>. <<3,4>> 30> B3= <<B1/binary, B2/binary>>. <<1,2,3,4>> 31>
Finally I found the solution. These posts helped to figure this out. RabbitMQ on EC2 Consuming Tons of CPU and https://serverfault.com/questions/337982/how-do-i-restart-rabbitmq-after-switching-machines What happened was rabbitmq was holding on to all the results that were never freed to the point it became overloaded. I cleared all the stale data in /var/lib/rabbitmq/mnesia/rabbit/, restarted rabbit and it works … Read more
I’m a month-or-so into learning and the guides I’m enjoying most are: The Erlang Site’s Getting Started with Erlang Guide Joe Armstrong’s Book Software for a Concurrent World (thoroughly recommended) And I have on order: O’Reilly’s Erlang Programming which has had some really positive reviews and sounds like a good companion to Joe Armstrong’s book … Read more
Printed process ids < A.B.C > are composed of 6: A, the node number (0 is the local node, an arbitrary number for a remote node) B, the first 15 bits of the process number (an index into the process table) 7 C, bits 16-18 of the process number (the same process number as B) … Read more
Disclaimer: I am the PO for Akka Erlang does copy-on-send – Akka uses shared memory (immutable objects) for in-VM sends Erlang does per-process GC – Akka uses JVM GCs Erlang has OTP – Akka integrates with the entire Java ecosystem (Apache Camel, JAX-RS, etc etc) Erlang does the process scheduling for you – Akka allows … Read more