Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jacky 24 posts 104 karma points
    Sep 29, 2013 @ 12:43
    Jacky
    0

    Ask help for distrubting websites at load balance

    I can't add more the same website for load balance when the distributed settings work good.

    1, Set these DNS in C:\Windows\System32\drivers\etc\hosts

    127.0.0.1 localhost

    127.0.0.1 admin.umbraco.local

    127.0.0.1 server1.umbraco.local

    127.0.0.1 server2.umbraco.local

    2, Set IIS

    Host name: admin.umbraco.local ; Port:8070; Physical Path: E:\Deployments\UmbracoCmsAdmin

    Host name: server1.umbraco.local; Port:8071; Physical Path: E:\Deployments\UmbracoCmsServer1

    Host name: server2.umbraco.local; Port:8072; Physical Path: E:\Deployments\UmbracoCmsServer2

    3, Install Umbraco into E:\Deployments\UmbracoCmsAdmin with simple template online.

    4, Copy all the files from E:\Deployments\UmbracoCmsAdmin to E:\Deployments\UmbracoCmsServer1 & E:\Deployments\UmbracoCmsServer2.

    5, Set config

    5.1, Add these settings in Web.config of admin & server1 & server2

    <machineKey validationKey="D70E11DC9966D22E8227F7F0574C25EECAD82FD44EBFAC02A3E40D434E142CEE4FBC9DD6F151EB82875FDC25D777B40F7B5EC5C4E711C26A770338F1FF9F291D" decryptionKey="B406E7A104E8B4FA818F1DBF1DA06D9BD2BA837A452647D9858516234BADA88C" validation="SHA1" decryption="AES" />
    

    5.2, Change these settings in ~\Config\umbracoSettings.config of admin & server1 & server2

      <distributedCall enable="true">
        <user>0</user>
        <servers>
            <server forceProtocol="http" forcePortnumber="8070">admin.umbraco.local</server>
            <server forceProtocol="http" forcePortnumber="8071">server1.umbraco.local</server>
            <server forceProtocol="http" forcePortnumber="8072">server2.umbraco.local</server>
        </servers>
      </distributedCall>
    

    5.3, Change these setting in Web.config of server1 & server2

    <add key="umbracoContentXML" value="~/App_Data/TEMP/umbraco.config" /> from <add key="umbracoContentXML" value="~/App_Data/umbraco.config" />
    

    5.4, Delete these in server1 & server2

    ~\App_Data\Logs
    ~\App_Data\TEMP
    

    6, Test

    If change "test content" at admin.umbraco.local, that will distribute the change to server1,server2.

    7. Problems

    Add "server3" as "server1" - copy all files from "admit" except "~\AppData\Logs" & "~\AppData\TEMP" and set the config as "server1". If change "test content" at admin.umbraco.local, that will distribute to server1,server2 also, but not to "server3".

    I don't know what's happened.

    Please help me out, thank you very much!

  • Jacky 24 posts 104 karma points
    Sep 29, 2013 @ 14:46
    Jacky
    0

    If delete these folders in "server3", it can refresh to new content.

    ~\App_Data\Logs
    ~\App_Data\TEMP
    

    But change new content at "admin" and publish again, "server3" still can't change with the same content. :(

Please Sign in or register to post replies

Write your reply to:

Draft