On Sat, Sep 22, 2012 at 1:53 PM, Olav <[email protected]> wrote: > Thanks, pretty sure the root was set correctly, but will check again when I > get to the server >
OK make sure nginx has read privileges for it too. > I know the guide says it assumes "4 Gb RAM is allocated for PostgreSQL and 7 > GB RAM is allocated for Tomcat", but does that assume a server with a total > of 12, 16, 24 GB - how much overhead is needed? If I have a server with 8GB > and assume that means I should use 2 GB for postgres and 3,5 GB for tomcat, > should all values simply be divided by two, or are some "fixed" > (checkpoint_completion_target, wal_buffers, wal_writer_delay)? > > These are probably stupid questions, but since the manual now really is a > step-by-step thing that covers more or less every command you need, I think > it could provide some more guidance here. > Okay understand. It depends on whether you have other services running on the same machine. You can leave around 1 GB free, 1. to give room for the operating system to perform its regular tasks and 2. as a buffer so that you don't tell java or postgres that it has more memory than what is physically available, which might lead to paging and decrease of performance. > Olav > > > > > 22. sep. 2012 kl. 11:05 skrev Lars Helge Øverland <[email protected]>: > >> Hi Olav >> >> On Sat, Sep 22, 2012 at 12:42 PM, Olav <[email protected]> wrote: >>> Hi, >>> was following the implementers manual to set up a server for the Gambia. All >>> worked fine, except for nginx caching(?) - using the "template" >>> configuration in the manual, the formatting/layout of DHIS2 is removed. >>> Commenting out the below block fixes the issue. Any suggestions for what I'm >>> doing wrong? >>> >>> # Root points to your DHIS webapp location, update it! >>> >>> location ~ >>> (\.js$|\.css$|\.gif$|\.woff$|\.ttf$|\.eot$|^/images/|^/icons/|^/dhis-web-commons/.*\.png$) >>> { >>> root /home/dhis/tomcat/webapps/ROOT; >>> expires 4d; >>> } >>> >> >> Make sure that the root path (in this case root >> /home/dhis/tomcat/webapps/ROOT) is actually pointing to the extracted >> war location on your server. >> >>> >>> Apart from that, the new server installations instructions are good, as >>> opposed to last time I tried to follow them... Only thing I really miss was >>> some more guidelines on configuration of memory, postgres etc related to the >>> memory available on the server. Something along the line of, "if you have 8 >>> GB total, allocate X for shared memory, set postgres variables to Y1, Y2, >>> Y3, set JAVA_OPTS to Z1, Z2, Z3". I understand it might be difficult to give >>> general recommendations, but some guidance on this would be good. >>> >> >> It says under 8.1: >> >> - >> For this guide we assume that 4 Gb RAM is allocated for PostgreSQL and >> 7 GB RAM is allocated for Tomcat. If you are running a different >> configuration please adjust the suggested values accordingly. >> - >> >> So you adjust the values used in the guide according to that. >> >> Lars >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

