[GeoNode-users] Docker Geonode/Geoserver Size
Rizky Maulana Nugraha
rizky at kartoza.com
Mon Apr 26 00:14:31 PDT 2021
Hi Irland,
> is any way to solve this problem? *beside re-installing the os
No worries, this is just filesystem issues. No need to reinstall.
Basically, your disk is already full because all the possible inodes were already used up.
Inodes is like the available address in your disk. If it already used up, then no more address can be given.
Even if your disk says it still have some extra GB left.
As I assume this is for production server, it is best if you solve it for the long term.
Buy a new disk dedicated to store caches. Format it using XFS or EXTFS4 but choose format
parameters that allows for many small files to be stored. In mkfs.ext4, I think the parameter is:
“-T small”. Check the available Inodes count using “df -i”. It should be higher than 6.2M (your previous default value).
After formatting the new disk, mount it to your server, then move/copy your tilecaches to your new disk.
You can then clean up your root disk (delete those tile caches in the root disk). This will free up your inodes in your root disk.
Last step, specify in your docker-compose file that the GWC directory mount to this new disk that you mounted for storing caches.
Regards,
--
Rizky Maulana Nugraha
Senior Software Engineer
Kartoza
rizky at kartoza.com
> On 26 Apr 2021, at 11.17, irland fardani <irlan128 at gmail.com> wrote:
>
> Hi Rizky,
> thanks for your reply
> My disk size is quite free, but you are right, i have a problem with the inode
> <geonode2.jpeg>
> i am only tiled the map about 20 million image of png, but the inode already full.
> i using linux (ubuntu). is any way to solve this problem? *beside re-installing the os
>
> Thanks before
>
> On Mon, Apr 26, 2021 at 10:44 AM Rizky Maulana Nugraha <rizky at kartoza.com <mailto:rizky at kartoza.com>> wrote:
> Hi Irland,
>
> I don’t see anything wrong with the command output.
> Your total docker image size is around 5.151 GB.
> I see that your local volumes have 18 GB which is normal if you store your files there in docker volume.
>
> > because my docker size is about 18 Gb, the docker usually crashes.
>
> What I understand from your screenshots, the 18 GB size is for docker volume and that is normal if persistent store is used.
> Probably you misunderstand a little bit. Docker image size is not the same thing as Docker volume size.
>
> > I want to ask, how to up size the geonode docker?
>
> There’s no way to resize docker image size. For the docker volume size, it will expand indefinitely as your filesystem/disk allows if your OS is Linux.
> If your OS is Macos then usually it is limited by the size of the qcow2 disk image itself (docker in MacOS is not native).
>
> > is it any variable that i must add when i do the docker compose command?
>
> No there isn’t any docker-compose command to control that. AFAIK there is some command to limit file size, but that is for log files.
>
> > or it is the default/maximum size of the docker geonode/geoserver only 18 Gb?
>
> I think there is no correlations.
>
> Some suggestion for me to figure out the root cause:
> 1. You could try checking your disk size if it has plenty of spaces to store 30 GB of data
> 2. What is your environment? Native Linux? In a VPS? There might be some limits imposed by the underlying systems
> 3. Does your filesystem optimized to store caches? You maybe run out of inodes. Check using “df -i” and “df -h”
> 4. Check the logs of your GeoServer. What was the error message? Why do you assume it was space issue?
>
> Regards,
> --
> Rizky Maulana Nugraha
> Senior Software Engineer
> Kartoza
> rizky at kartoza.com <mailto:rizky at kartoza.com>
>
>
>
>
>
>> On 24 Apr 2021, at 11.21, irland fardani <irlan128 at gmail.com <mailto:irlan128 at gmail.com>> wrote:
>>
>> Dear All,
>> I install geonode and geoserver via docker. In Geoserver GWC I create a tiled file, and the size is very big (about 30 Gb). because my docker size is about 18 Gb, the docker usually crashes.
>> I want to ask, how to up size the geonode docker? is it any variable that i must add when i do the docker compose command?or it is the default/maximum size of the docker geonode/geoserver only 18 Gb?
>> Thanks
>>
>> <WhatsApp Image 2021-04-23 at 3.00.41 PM.jpeg>
>> --
>> Irland Fardani M.T.
>> +628562257785
>> +6281223261345
>> Program Studi Perencanaan Wilayah Kota <http://planologi.unisba.ac.id/>
>> Fakultas Teknik <http://planologi.unisba.ac.id/>
>> Universitas Islam Bandung <http://planologi.unisba.ac.id/>
>> Hatur Nuhun
>>
>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <>_______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
>> https://lists.osgeo.org/mailman/listinfo/geonode-users <https://lists.osgeo.org/mailman/listinfo/geonode-users>
>
>
>
> --
> Irland Fardani M.T.
> +628562257785
> +6281223261345
> Program Studi Perencanaan Wilayah Kota <http://planologi.unisba.ac.id/>
> Fakultas Teknik <http://planologi.unisba.ac.id/>
> Universitas Islam Bandung <http://planologi.unisba.ac.id/>
> Hatur Nuhun
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20210426/ec8285e2/attachment.html>
More information about the geonode-users
mailing list