<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mariano Guerra's Log (Posts about template)</title><link>http://marianoguerra.org/</link><description></description><atom:link href="http://marianoguerra.org/categories/template.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 18 Nov 2024 17:56:38 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>rebar3 partisan template</title><link>http://marianoguerra.org/posts/rebar3-partisan-template/</link><dc:creator>Mariano Guerra</dc:creator><description>&lt;p&gt;I created a &lt;a class="reference external" href="http://www.rebar3.org/"&gt;rebar3&lt;/a&gt; template to start a &lt;a class="reference external" href="https://lasp-lang.readme.io/docs/overview"&gt;partisan&lt;/a&gt;  project, the template is here:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/marianoguerra/rebar3_template_partisan"&gt;rebar3 partisan template&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What is partisan? from the docs:&lt;/p&gt;
&lt;pre class="literal-block"&gt;Partisan is the technology that provides Lasp's scalable cluster
membership. Partisan bypasses the use of Distributed Erlang for manual
connection management via TCP, and has several pluggable backends for
different deployment scenarios.&lt;/pre&gt;
&lt;p&gt;To use:&lt;/p&gt;
&lt;pre class="literal-block"&gt;mkdir -p ~/.config/rebar3/templates
git clone https://github.com/marianoguerra/rebar3_template_partisan.git ~/.config/rebar3/templates/rebar3_template_partisan
rebar3 new rebar3_template_partisan name=party
cd party
make release
make console&lt;/pre&gt;
&lt;p&gt;Clustering:&lt;/p&gt;
&lt;pre class="literal-block"&gt;make devrel

# on 3 different shells
make dev1-console
make dev2-console
make dev3-console

# join all nodes:
make devrel-join

# check node members
make devrel-status

# join node1 to node2 manually:
./_build/dev1/rel/party/bin/party-admin cluster join party2@127.0.0.1

# check node1 members
./_build/dev1/rel/party/bin/party-admin cluster members

# check node1 connections
./_build/dev1/rel/party/bin/party-admin cluster connections&lt;/pre&gt;
&lt;p&gt;A video to show how to use:&lt;/p&gt;
&lt;script type="text/javascript" src="https://asciinema.org/a/ULU5g8Dz4Gub1So389I8cKlZR.js" id="asciicast-ULU5g8Dz4Gub1So389I8cKlZR" async&gt;&lt;/script&gt;</description><category>erlang</category><category>partisan</category><category>rebar3</category><category>template</category><guid>http://marianoguerra.org/posts/rebar3-partisan-template/</guid><pubDate>Sat, 09 Dec 2017 23:16:11 GMT</pubDate></item></channel></rss>