Revision history [back]

click to hide/show revision 1
initial version

answered 2022-04-07 14:31:53 +0800

wastemails gravatar image wastemails

Disabled websocket

  • List item

Configured zk.xml with the following for clustering

<system-config>
    <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
</system-config>
<listener>
    <listenerclass>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
</listener>
  • List item No Global Desktop cache is enabled
  • List item Using Nginx as loadbalancer with the following settings

    upstream backend.com{ server 192.168.100.131:8086; server 192.168.100.131:8087; } server{ listen 80; servername backend.com; location / { proxypass http://backend.com; proxysetheader Upgrade $httpupgrade; proxysetheader Connection "upgrade"; proxysetheader X-Forwarded-For $proxyaddxforwardedfor; proxysetheader X-Forwarded-Proto $scheme; proxysetheader X-Forwarded-Port $serverport; proxysetheader Host $host; proxyreadtimeout 5000;

    }
    

    }

Disabled 1)Disabled websocket

  • List item

2) Configured zk.xml with the following for clustering

<system-config>
    <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
</system-config>
<listener>
    <listenerclass>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
</listener>
  • List item No

    3)No Global Desktop cache is enabled

  • List item Using 4)Using Nginx as loadbalancer with the following settings

    upstream backend.com{
            server 192.168.100.131:8086;
            server 192.168.100.131:8087;
    }
    server{
      listen 80;
      servername server_name backend.com;
      location / {
           proxypass proxy_pass  http://backend.com;
    http://backend.com;
     proxysetheader proxy_set_header Upgrade  $httpupgrade;
    $http_upgrade;
     proxysetheader proxy_set_header Connection "upgrade";
           proxysetheader proxy_set_header X-Forwarded-For $proxyaddxforwardedfor;
    $proxy_add_x_forwarded_for;
     proxysetheader proxy_set_header X-Forwarded-Proto $scheme;
           proxysetheader proxy_set_header X-Forwarded-Port $serverport;
    $server_port;
     proxysetheader proxy_set_header Host $host;
           proxyreadtimeout 5000;

    proxy_read_timeout 5000;
        }
    }
    

    }

0)Using two zk web applications for High availability if one application failed the other application should take over without loosing session information.

1)Disabled websocket

2) Configured zk.xml with the following for clustering

<system-config>
    <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
</system-config>
<listener>
    <listenerclass>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
</listener>

3)No Global Desktop cache is enabled

4)Using Nginx as loadbalancer with the following settings

upstream backend.com{
        server 192.168.100.131:8086;
        server 192.168.100.131:8087;
}
server{
  listen 80;
  server_name backend.com;
  location / {
       proxy_pass        http://backend.com;
       proxy_set_header Upgrade  $http_upgrade;
       proxy_set_header Connection "upgrade";
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-Port $server_port;
       proxy_set_header Host $host;
       proxy_read_timeout 5000;

    }
}

0)Using two zk web applications for High availability if one application failed the other application should take over without loosing session information.

1)Disabled websocket

2) Configured zk.xml with the following for clustering

<system-config>
    <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
</system-config>
<listener>
    <listenerclass>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
</listener>

3)No Global Desktop cache is enabled

4)Using Nginx as loadbalancer with the following settings

upstream backend.com{
        server 192.168.100.131:8086;
        server 192.168.100.131:8087;
}
server{
  listen 80;
  server_name backend.com;
  location / {
       proxy_pass        http://backend.com;
       proxy_set_header Upgrade  $http_upgrade;
       proxy_set_header Connection "upgrade";
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-Port $server_port;
       proxy_set_header Host $host;
       proxy_read_timeout 5000;

    }
}

5) In zul Hashmap is iterated with entrySet() for displaying data only, no concurrent modifications are done during iteration

6)As suggested tried with ConcurrentHashMap also getting the same error

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More