Hey Lucas,
On Sun, Jul 30, 2017 at 5:36 PM, Lucas Vossberg <
voss...@exedra.de> wrote:
> Hi,
>
> after further looking into the problem I've now found out that the delay in
> syncing updates between two copies of the repository is not the reason for
> my Post-Redirect-Get problem. If the load balancer directs the user to a
> different node, the saved form data cannot be retrieved at all, even after a
> sync has happened. I'll have to look into this.
You are making some incorrect assumptions. Why the form data cannot be
retrieved in your setup I don't know, you have to sort this out. Can
it be retrieved on the cluster node that saved the form data?
Either way, these are your wrong assumptions:
1) You do not need a sync to make a 'new node' available on a
different cluster node for *fetching*. Thus, when trying to fetch a
node by a UUID, and this node is not in local cache, a database lookup
is done, regardless whether a sync has been done after the node has
been written to the database (by another cluster node). Since the hst
2 forms works with UUIDs, you can use them in stateless websites
without requiring a cluster sync. This is how I designed the hst form
data to work in stateless webapps many years ago.
2) The cluster sync does update JCR Nodes in local cache, it does
update the local lucene indexes and it triggers JCR eventlisteners. As
explained, for fetching a new node by UUID that was not retrieved
earlier (and thus not in local cache), you do not need a cluster sync
3) The cluster sync delay configuration is the *maximum* time it takes
before a sync is done. However, and jcr Session refresh *does* trigger
a direct cluster sync. If there is some code that triggers a jcr
session refresh every, say, 0.5 seconds, then the sync is done every
0.5 seconds. This is why session refreshes need to be done with care
(and why the HST uses in its session pools a 'localRefresh' that we
added in the Hippo repository: A refresh that does not trigger a way
more expensive cluster sync)
HTH,
Regards Ard
> --
> Hippo Community Group: The place for all discussions and announcements about
> Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to
hippo-c...@googlegroups.com
> RSS:
>
https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google Groups
> "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
hippo-communi...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/hippo-community.
> For more options, visit
https://groups.google.com/d/optout.
--
Hippo Netherlands, Oosteinde 11, 1017 WT Amsterdam, Netherlands
Hippo USA, Inc. 71 Summer Street, 2nd Floor Boston, MA 02110, United
states of America.
US
+1 877 414 4776 (toll free)
Europe
+31(0)20 522 4466
www.onehippo.com