So, attached is an example of a low-level config that works for me to
automatically replicate everything to another Camlistore instance.

I was running the other instance in docker on the same host, but the same
principle applies to an actually remote host.

The parts that differ from a default config are the use of a storage-remote
handler (for the second instance), and an additional storage-replica
(because there's already a replica for indexing) handler for replicating to
that storage-remote. So basically, these two blocks:

        "/bsrepl/": {
            "handler": "storage-replica",
            "handlerArgs": {
                "backends": [
                    "/bs/",
                    "/bs2/"
                ]
            }
        },

"/bs2/": {
"handler": "storage-remote",
"handlerArgs": {
"url": "https://home.granivo.re:3179";,
"auth": "userpass:foo:bar",
"skipStartupCheck": false
}
},

I got the initial low-level config by going to /debug/config on the web
interface. then I simply added these two handlers, and changed /bs/ into
/bsrepl/ in the storage-replica and storage-cond for the index.
Oh, and you also need to add the "handlerConfig": true key for Camlistore
to know it's given a low-level config.

hth,
Mathieu



On 27 February 2017 at 15:47, Mathieu Lonjaret <[email protected]>
wrote:

> I think what you want is https://camlistore.org/pkg/blobserver/replica
> with maybe https://camlistore.org/pkg/server#SyncHandler , which indeed
> might only be possible through the low-level config.
> More detail tonight when I'm back home.
>
>
> On 27 February 2017 at 10:11, joe higton <[email protected]> wrote:
>
>>
>> Thanks. I saw that option, but the frontpage implies the server should be
>> able to do this automatically, like you do with the S3 remote blobstore
>> etc. Is this something that's just not in the simple config format?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Camlistore" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Camlistore" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: server-config.json
Description: application/json

Reply via email to