<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Redis - parallel zwei ioBroker single host]]></title><description><![CDATA[<p dir="auto">Hallo zusammen,</p>
<p dir="auto">aktuell ist meine ioBroker Umgebung folgendermaßen aufgebaut.<br />
Es sind drei Container (LXD/LXC) vorhanden.</p>
<ol>
<li>iobroker - 192.168.78.132 - (single host) Produktiv Umgebung</li>
<li>iobrokertest - 192.168.78.135 - (single host) Test Umgebung</li>
<li>redis - 192.168.78.133 - (Standard Installation)</li>
</ol>
<p dir="auto">Container 1. iobroker ist erfolgreich auf Redis Datenbank umgestellt.<br />
Wenn ich jetzt Container 2. iobrokertest ebenfalls auf die Redis Datenbank umstelle, Ablauf siehe unten, dann ist der Container nicht mehr über die IP-Adresse erreichbar. Er wird jetzt unter Hosts der Admin Oberfläche des ersten Containers aufgeführt.<br />
Mein Ziel ist es die beiden ioBroker Admin Oberflächen unabhängig von einander über die jeweilige IP-Adresse aufzurufen. Kann ich das überhaupt so realisieren, und wenn ja, was habe ich bei der Umstellung auf die Redis Datenbank übersehen?</p>
<p dir="auto">Vorab schon einmal Dankeschön für eure Unterstützung.<br />
Gruß, Karsten</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Ablauf</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>ubuntu@iobrokertest:~$ iobroker stop
ubuntu@iobrokertest:~$ iobroker setup custom
Current configuration:
- Objects database:
 - Type: jsonl
 - Host/Unix Socket: 127.0.0.1
 - Port: 9001
- States database:
 - Type: jsonl
 - Host/Unix Socket: 127.0.0.1
 - Port: 9000
- Data Directory: ../../iobroker-data/

Type of objects DB [(j)sonl, (f)ile, (r)edis, ...], default [jsonl]: r

When Objects and Files are stored in a Redis database please consider the following:
1. All data will be stored in RAM, make sure to have enough free RAM available!
2. Make sure to check Redis persistence options to make sure a Redis problem will not cause data loss!
3. The Redis persistence files can get big, make sure not to use an SD card to store them.

Host / Unix Socket of objects DB(redis), default[127.0.0.1]: 192.168.78.133
Port of objects DB(redis), default[6379]:
Type of states DB [(j)sonl, (f)file, (r)edis, ...], default [redis]:
Host / Unix Socket of states DB (redis), default[192.168.78.133]:
Port of states DB (redis), default[6379]:
Host name of this machine [iobrokertest]:
Please choose if this is a Master/single host (enter "m") or a Slave host (enter "S") you are about to edit. For Slave hosts the data migration will be skipped. [S/m]: m

Important: Using redis for the Objects database is only supported
with js-controller 2.0 or higher!
When your system consists of multiple hosts please make sure to have
js-controller 2.0 or higher installed on ALL hosts *before* continuing!


Important #2: If you already did the migration on an other host
please *do not* migrate again! This can destroy your system!


Important #3: The process will migrate all files that were officially
uploaded into the ioBroker system. If you have manually copied files into
iobroker-data/files/... into own directories then these files will NOT be
migrated! Make sure all files are in adapter directories inside the files
directory!


Do you want to migrate objects and states from "jsonl/jsonl" to "redis/redis" [y/N]: n

No Database migration was done.
If this was done on your master host please execute "iobroker setup first" to newly initialize all objects.

updating conf/iobroker.json
ubuntu@iobrokertest:~$ iobroker status
iobroker is not running on this host.

At least one iobroker host is running.

Objects type: redis
States  type: redis
ubuntu@iobrokertest:~$ iobroker setup first
object _design/system updated
{
 "defaultPrivate": "-----BEGIN RSA PRIVATE KEY-----\r\nMIXXXbU0Z\r\n-----END RSA PRIVATE KEY-----\r\n",
 "defaultPublic": "-----BEGIN CERTIFICATE-----\r\nMIXXX8PQ=\r\n-----END CERTIFICATE-----\r\n"
}
Update certificate defaultPrivate
The object "system.certificates" was updated successfully.
Update certificate defaultPublic
The object "system.certificates" was updated successfully.
ubuntu@iobrokertest:~$ iobroker start
</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">iobroker info</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>Ubuntu 20.04 LTS (LXD/LXC)
admin: v5.3.1
js-controller: v4.0.18
node: v14.19.0
npm: v6.14.16
repository: stable
</code></pre>
<p dir="auto"></p></section></section><p></p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">iobrokertest info</button><section style="display:none" class="spoiler-content"><p></p>
<pre><code>Ubuntu 20.04 LTS (LXD/LXC)
admin: v5.3.1
js-controller: v4.0.19
node: v16.14.0
npm: v8.3.1
repository: beta
</code></pre>
<p dir="auto"></p></section></section><p></p>
]]></description><link>https://forum.iobroker.net/topic/53116/redis-parallel-zwei-iobroker-single-host</link><generator>RSS for Node</generator><lastBuildDate>Sat, 23 May 2026 00:28:45 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/53116.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Mar 2022 04:09:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 10:45:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> sagte in <a href="/post/773318">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<p dir="auto">redis ist die Datenbank...</p>
</blockquote>
<p dir="auto">Jetzt weiß ich woher mein Denkfehler herrührt.<br />
Ich bin davon ausgegangen, das Redis eine Datenbankverwaltung ist, und nicht die Datenbank selber. Hatte das mit MariaDB, oder ähnlichem, verglichen. Anfängerfehler, hätte mich im Vorfeld doch etwas mehr mit Redis beschäftigen sollen.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredf" aria-label="Profile: fredf">@<bdi>fredf</bdi></a> sagte in <a href="/post/773325">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a>  Ich verstehe das so:</p>
</blockquote>
<p dir="auto">Jetzt verstehe ich das genauso.</p>
<p dir="auto">Vielen lieben Dank noch einmal für eure Aufklärung <img src="https://forum.iobroker.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=ba16ebd4856" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://forum.iobroker.net/post/773347</link><guid isPermaLink="true">https://forum.iobroker.net/post/773347</guid><dc:creator><![CDATA[hydrotec]]></dc:creator><pubDate>Mon, 07 Mar 2022 10:45:52 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 10:03:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a>  Ich verstehe das so:<br />
Jeder ioBroker <em><strong>single</strong></em> Host braucht <em><strong>einen dedizierten</strong></em> Redis Server.<br />
Auch jeder ioBroker <em><strong>Master</strong></em> Host braucht <em><strong>einen dedizierten</strong></em> Redis Server. Da die Verwaltung der Slaves im Multihost durch den Master erfolgt, ist kein(e) weiterer(er) Redis Server für Slave(s) notwendig.</p>
<p dir="auto">Korrigiert mich, wenn ich das falsch sehe :man-getting-haircut:</p>
]]></description><link>https://forum.iobroker.net/post/773325</link><guid isPermaLink="true">https://forum.iobroker.net/post/773325</guid><dc:creator><![CDATA[FredF]]></dc:creator><pubDate>Mon, 07 Mar 2022 10:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 09:59:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a> sagte in <a href="/post/773301">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<p dir="auto">wenn ich für jede Datenbank ein eigenes Redis hochziehen muss.</p>
</blockquote>
<p dir="auto">redis ist die Datenbank...</p>
<p dir="auto">und in der Parxi vermischt du auch nicht alle Systeme PROD/RC/DEV auf einer datenbank (egal ob DB, Oracle oder oder)<br />
es geht nur um Systemtrennung..</p>
<p dir="auto">DU kannst natürlich alles in eine rein kloppen.. mit der gefahr dass wenn DU was vermurkst im Test belibt die bude dunkel im PROD..</p>
]]></description><link>https://forum.iobroker.net/post/773318</link><guid isPermaLink="true">https://forum.iobroker.net/post/773318</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Mon, 07 Mar 2022 09:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 09:16:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a></p>
<p dir="auto">OK, dankeschön für die klärende Unterstützung. :-)</p>
<p dir="auto">Dann werde ich mein System umstellen.<br />
Verstehe dann zwar immer noch nicht, warum das nicht über einen Redis Server gestaltet werden kann, aber ich beuge mich der aktuellen Situation. ;-) Für mich ist halt der Sinn der Datenbankverwaltung (Redis) verloren, wenn ich für jede Datenbank ein eigenes Redis hochziehen muss.</p>
<p dir="auto">Angenehmen Tag noch, und Danke nochmals :-)<br />
Gruß, Karsten</p>
]]></description><link>https://forum.iobroker.net/post/773301</link><guid isPermaLink="true">https://forum.iobroker.net/post/773301</guid><dc:creator><![CDATA[hydrotec]]></dc:creator><pubDate>Mon, 07 Mar 2022 09:16:40 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 08:32:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a> sagte in <a href="/post/773258">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<ol>
<li>iobroker / 2. iobrokertest</li>
</ol>
</blockquote>
<p dir="auto">ja genau.. pro system also in deinem Fall 1. iobrker (prod system) ein redis<br />
und für dein Testsystem auch ein redis ..</p>
]]></description><link>https://forum.iobroker.net/post/773264</link><guid isPermaLink="true">https://forum.iobroker.net/post/773264</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Mon, 07 Mar 2022 08:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 08:27:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a><br />
musst du ja nicht, diese einstellung hat mit redis nichts zu tun.<br />
mach einfach für jeden iobroker einen eigene redis instanz.</p>
<p dir="auto">leider kann ich dir nicht sagen wie das unter einer normalen installation läuft, da ich das alles in docker containern voneinander separiere und mir das docker/portainer automatisch macht.</p>
]]></description><link>https://forum.iobroker.net/post/773263</link><guid isPermaLink="true">https://forum.iobroker.net/post/773263</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Mon, 07 Mar 2022 08:27:42 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 08:23:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a></p>
<p dir="auto">Dafür steht doch dann eigentlich die Umstellung auf Slave.<br />
Das möchte ich ja nicht.</p>
]]></description><link>https://forum.iobroker.net/post/773259</link><guid isPermaLink="true">https://forum.iobroker.net/post/773259</guid><dc:creator><![CDATA[hydrotec]]></dc:creator><pubDate>Mon, 07 Mar 2022 08:23:10 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 08:22:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a></p>
<p dir="auto">Das hieße ja dann, das für jede Master/single host Installation jeweils Redis installiert werden müsste, oder?<br />
Also das der dritte Container (3. redis) bei mir entfernt werden kann, und innerhalb der anderen beiden Container (1. iobroker / 2. iobrokertest) jeweils Redis installieren muss.</p>
]]></description><link>https://forum.iobroker.net/post/773258</link><guid isPermaLink="true">https://forum.iobroker.net/post/773258</guid><dc:creator><![CDATA[hydrotec]]></dc:creator><pubDate>Mon, 07 Mar 2022 08:22:05 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 08:20:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a></p>
<p dir="auto">multihost/singlehost bezieht sich nicht auf die redis installation, sondern<br />
ob iobroker mit anderen iobroker-instanzen auf anderen rechnern kommunizieren muss.</p>
]]></description><link>https://forum.iobroker.net/post/773257</link><guid isPermaLink="true">https://forum.iobroker.net/post/773257</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Mon, 07 Mar 2022 08:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 08:03:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a> ja..aber das wird nicht in die db mit als Erkennungsmerkmal rein geschrieben..</p>
]]></description><link>https://forum.iobroker.net/post/773245</link><guid isPermaLink="true">https://forum.iobroker.net/post/773245</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Mon, 07 Mar 2022 08:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 07:20:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> sagte in <a href="/post/773189">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<p dir="auto">redis ist eine in memory DB.. die wird unabhängig von der iobroker installation installiert</p>
</blockquote>
<p dir="auto">Das ist soweit klar.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arteck" aria-label="Profile: arteck">@<bdi>arteck</bdi></a> sagte in <a href="/post/773189">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<p dir="auto">...connsectest du einen weiteren host mit der db ohne dsa dem sysem mitzuteilen...</p>
</blockquote>
<p dir="auto">Das wird hiermit doch übermittelt, oder sehe ich das falsch?</p>
<pre><code>Host name of this machine [iobrokertest]:
</code></pre>
]]></description><link>https://forum.iobroker.net/post/773227</link><guid isPermaLink="true">https://forum.iobroker.net/post/773227</guid><dc:creator><![CDATA[hydrotec]]></dc:creator><pubDate>Mon, 07 Mar 2022 07:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 05:27:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a> redis ist eine in memory DB.. die wird unabhängig von der iobroker installation installiert</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a> sagte in <a href="/post/773188">Redis - parallel zwei ioBroker single host</a>:</p>
<blockquote>
<p dir="auto">Deswegen bin ich ja etwas verwirrt, das die Auswahl m nicht greift, und die zweite ioBroker Installation als weiterer Host auf der Admin Oberfläche der ersten ioBroker Installation erscheint.</p>
</blockquote>
<p dir="auto">ja weil iobroker muss sicher stellen dass es nicht 2 mal die gleiche instanz auf 2 hosts läuft. connsectest du einen weiteren host mit der db ohne dsa dem sysem mitzuteilen kann es böse nebeneffecte geben</p>
]]></description><link>https://forum.iobroker.net/post/773189</link><guid isPermaLink="true">https://forum.iobroker.net/post/773189</guid><dc:creator><![CDATA[arteck]]></dc:creator><pubDate>Mon, 07 Mar 2022 05:27:31 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Mon, 07 Mar 2022 05:02:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliverio" aria-label="Profile: oliverio">@<bdi>oliverio</bdi></a></p>
<p dir="auto">So wie ich das verstanden habe, verwaltet Redis die Datenbank <em>in memory</em>, und ioBroker bedient sich dieser Datenbank Einträge. Es steht auch nirgends etwas darüber, das zu jedem Programm/Prozess ein eigenes Redis installiert werden müsste. Und während der Umstellung durch <code>iobroker setup custom</code> wird ja extra gefragt ob es sich um ein Single oder Slave Host handelt.</p>
<pre><code>Please choose if this is a Master/single host (enter "m") or a Slave host (enter "S") you are about to edit. For Slave hosts the data migration will be skipped.
</code></pre>
<p dir="auto">Deswegen bin ich ja etwas verwirrt, das die Auswahl <code>m</code> nicht greift, und die zweite ioBroker Installation als weiterer Host auf der Admin Oberfläche der ersten ioBroker Installation erscheint.</p>
]]></description><link>https://forum.iobroker.net/post/773188</link><guid isPermaLink="true">https://forum.iobroker.net/post/773188</guid><dc:creator><![CDATA[hydrotec]]></dc:creator><pubDate>Mon, 07 Mar 2022 05:02:31 GMT</pubDate></item><item><title><![CDATA[Reply to Redis - parallel zwei ioBroker single host on Sun, 06 Mar 2022 16:21:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hydrotec" aria-label="Profile: hydrotec">@<bdi>hydrotec</bdi></a><br />
warum willst du ein gemeinsames redis haben?<br />
ich weiß nicht wie iobroker intern mit den states umgeht und ob es davon ausgeht, das in redis die einzige wahrheit steht. dann würde es gehen.</p>
<p dir="auto">wenn redis nur für das persistente speichern der werte zuständig ist, aber die states in einem cache im speicher in iobroker steht, dann weiß dieser nix davon, wenn eine andere iobroker instanz einen schlüssel ändert.<br />
das würde dann zu einem inkonsistenten datenstand führen.</p>
]]></description><link>https://forum.iobroker.net/post/772960</link><guid isPermaLink="true">https://forum.iobroker.net/post/772960</guid><dc:creator><![CDATA[OliverIO]]></dc:creator><pubDate>Sun, 06 Mar 2022 16:21:04 GMT</pubDate></item></channel></rss>