diff --git a/.gitignore b/.gitignore index e5edd881..7bbd3600 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ *.swp *.tar.gz *Zone.Identifier +.hugo_build.lock +hugo_stats.json +node_modules/ +public/ +resources/ \ No newline at end of file diff --git a/content/news/bad-good-ugly-git/index.md b/content/news/bad-good-ugly-git/index.md index 45e74dbc..790fd3ff 100644 --- a/content/news/bad-good-ugly-git/index.md +++ b/content/news/bad-good-ugly-git/index.md @@ -1,7 +1,7 @@ --- type: news title: 👺 The Bad, the Good and the Ugly Git -date: 2023-08-21T03:48:10+02:00 +date: 2023-10-28T03:48:10+02:00 featured: true draft: false comment: true @@ -21,7 +21,7 @@ authors: images: [./bad-good-ugly-git/carousel.webp] --- -When it come about IT, git is impossible to be ignore... even for an infrastructure guys! +When it come about IT, git cannot to be ignore... even for an infrastructure guys! diff --git a/content/news/how-to-create-this-blog/index.md b/content/news/how-to-create-this-blog/index.md index 96714da8..d1d3b749 100644 --- a/content/news/how-to-create-this-blog/index.md +++ b/content/news/how-to-create-this-blog/index.md @@ -339,7 +339,16 @@ jobs: ## Update it. -To update the theme +Set your `.gitignore`: + +```text +.hugo_build.lock +hugo_stats.json +node_modules/ +resources/ +``` + +Then update the theme ```bash cd themes/hugo-theme-bootstrap @@ -348,7 +357,7 @@ git checkout [version] cd ../../ hugo mod npm pack npm update -git add themes/hugo-theme-bootstrap package.hugo.json package.json package-lock.json node_modules +git add themes/hugo-theme-bootstrap package.hugo.json package.json package-lock.json git commit -m 'Bump theme to [version]' ``` diff --git a/content/news/just-vs-makefile/index.md b/content/news/just-vs-makefile/index.md index b4c643d3..31e2835f 100644 --- a/content/news/just-vs-makefile/index.md +++ b/content/news/just-vs-makefile/index.md @@ -1,7 +1,7 @@ --- # type: docs title: 👷👮 Makefile VS Justfile -date: 2023-08-21T03:48:10+02:00 +date: 2023-10-27T03:48:10+02:00 featured: true draft: false comment: true diff --git a/content/news/orientdb/index.md b/content/news/orientdb/index.md index 75744197..c3817873 100644 --- a/content/news/orientdb/index.md +++ b/content/news/orientdb/index.md @@ -3,7 +3,7 @@ type: news title: 🍛 Discovering Orientdb date: 2023-08-22T03:48:10+02:00 featured: true -draft: true +draft: false comment: true toc: true reward: true @@ -21,12 +21,21 @@ authors: images: [./orientdb/carousel.webp] --- +OrientDB get into the GraphDB category. It's a lightweight DB writen in java which can be embedded in applications. +One project which have a strong dependencies on Orientdb is the Nexus Repository which carry an embedded OrientDB. + + ## A bit of History -One project which have a strong dependencies on Orientdb is the Nexus Repository as embended. Both DB bring GraphDB, key/Values and Document store but ArcadeDB have much more features and understand much more languages. +OrientDB was created in 2010 by Luca Garulli, a pionneer in the multi-model databases. Nonetheless, even if OrientDB is a recognized opensource project, since the acquisition by SAP and the leaving of the foundator in 2021, OrientDB looks hardly supproted. The foundator forked the project to ArkadeDB. +For ArcadeDB the vision stay clearly opensource and it's visible that it's much more dynamic even though the project is only two years old. +> All things open source moves faster compared to the proprietary world. +> +> -- Luca Garulli +> -- [Blog](https://blog.arcadedb.com/welcome-to-arcadedb) ## OrientDB Install @@ -62,23 +71,23 @@ podman exec -it orientdb /bin/sh Fine Tuning: -* Xmx + diskCache.buffersize < Memory +* `Xmx + diskCache.buffersize < Memory` + +* `diskCache.buffersize > Xmx` Usually better assigning small heap and large disk cache buffer (off-heap memory) + [Source](https://orientdb.com/docs/last/tuning/Performance-Tuning.html) -* diskCache.buffersize > Xmx - usually better assigning small heap and large disk cache buffer (off-heap memory) - => source: https://orientdb.com/docs/last/tuning/Performance-Tuning.html +* If the sum of maximum heap and disk cache buffer is too high, it could cause the OS to swap with huge slowdown. (Get back to the first point) -* If the sum of maximum heap and disk cache buffer is too high, it could cause the OS to swap with huge slowdown. (you get back to the point 1/) +* Setting *MaxDirectMemorySize* to a very high value should not concern you as it does not mean that OrientDB will consume all 512GB of memory. + The size of direct memory consumed by OrientDB is limited by the size of the disk cache (variable storage.diskCache.bufferSize). + [Source](https://orientdb.com/docs/last/internals/Embedded-Server.html?highlight=MaxDirectMemorySize#requirements) -* Setting MaxDirectMemorySize to a very high value should not concern you as it does not mean that OrientDB will consume all 512GB of memory. - The size of direct memory consumed by OrientDB is limited by the size of the disk cache (variable storage.diskCache.bufferSize). - Source: https://orientdb.com/docs/last/internals/Embedded-Server.html?highlight=MaxDirectMemorySize#requirements +* `xms = xmx` Generally a good pratice. -* xms = xmx +* `-Dmemory.useUnsafe=false` This one, I do not know what it's for, but does not inspire me confidence... so should we pass it to `true` ? -* -Dmemory.useUnsafe=false ? -So for a server with 24GB memory, this should give a config like this in your ./bin/server.sh: +To resume, for a server with 24GB memory, this should give a config like this in your `${ORIENTDB_HOME}/bin/server.sh` like the one below: ```bash ORIENTDB_OPTS_MEMORY="-Xms8G -Xmx8G -XX:MaxDirectMemorySize=512G -Dstorage.diskCache.bufferSize=12400" @@ -86,7 +95,9 @@ ORIENTDB_OPTS_MEMORY="-Xms8G -Xmx8G -XX:MaxDirectMemorySize=512G -Dstorage.diskC ## Monitoring -* Push agent jar corresponding to your orientdb version inside `${ORIENTDB_HOME}/plugins` directory +After config below, you should be able to see metrics in your dashboard in the *server management* part. + +* Push agent.jar corresponding to your orientdb version inside `${ORIENTDB_HOME}/plugins` directory * inside `${ORIENTDB_HOME}/bin/server.sh` @@ -136,7 +147,5 @@ fi * openfiles on systems ```bash -lsof -u svc_orientdb | wc -l - -for i in $(ps -ef | grep java | grep -v grep | awk '{print $2}'); do ls /proc/${i}/fd/ | wc -l; done +lsof -u orientdb | wc -l ``` diff --git a/content/news/wsl-beauty/index.md b/content/news/wsl-beauty/index.md index 1931c2a3..ac27692d 100644 --- a/content/news/wsl-beauty/index.md +++ b/content/news/wsl-beauty/index.md @@ -1,7 +1,7 @@ --- type: news title: 🎉 The Beauty of WSL -date: 2023-10-29T03:48:10+02:00 +date: 2023-08-08T03:48:10+02:00 featured: true draft: false comment: true @@ -21,6 +21,9 @@ authors: images: [./wsl-beauty/carousel.webp] --- +WSL stand for *Windows Subsystem Linux*. It allow us to get the best of both world... + + ## Get Started