On 3/07/2014 1:45 AM, [email protected] wrote:
> ATM I have a postgreSQL database working and an Apache under
> construction (if I may). I’m looking for information about sync
> architecture and how to implement some fun things like : SSO (Kerberos),
> load balancing, backup, … anything usefull for a large scale of user
> (10k to 100k).

So we do have a tiny bit of Secret Scalability Sauce that's not part of
the default self-hosted sync setup, because it's kinda fiddly and is not
required until you start pushing very large numbers of users.

Basically, we run multiple storage nodes and have each user account
assigned to sync to a specific node.  If you're connected to the
Mozilla-hosted sync system, go into "about:config" in Firefox and search
for "clusterURL".  You'll see something like:

clusterURL: https://sync-60-us-west-2.sync.services.mozilla.com/1.5/3597148/

That's my "sync node".  This is a very simple scheme for splitting the
load across multiple machines.

For Sync1.1 this is part of the authentication API, and the server
that's responsible for it is called the "node assignment server":

  http://hg.mozilla.org/services/server-node-assignment

For Sync1.5 the same job is done by the new authentication server,
called the "tokenserver":

  http://docs.services.mozilla.com/token/index.html
  https://github.com/mozilla-services/tokenserver

> For now I’m working on Sync 1.1 due to Fennec incompatibility with Sync
> 1.5 custom server.

Given Nick's reply about the imminent availability of this in Fennec,
are you interested in switching over to Sync1.5?  I'll avoid overloading
you with further details of either system for now.


  Cheers,

    Ryan
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

Reply via email to