Skip to content

Commit

Permalink
edit articles
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed Oct 29, 2023
1 parent 3aa1b80 commit 5ac48ca
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
*.swp
*.tar.gz
*Zone.Identifier
.hugo_build.lock
hugo_stats.json
node_modules/
public/
resources/
4 changes: 2 additions & 2 deletions content/news/bad-good-ugly-git/index.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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!

<!--more-->

Expand Down
13 changes: 11 additions & 2 deletions content/news/how-to-create-this-blog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]'
```

Expand Down
2 changes: 1 addition & 1 deletion content/news/just-vs-makefile/index.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
43 changes: 26 additions & 17 deletions content/news/orientdb/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

<!--more-->

## 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.
>
> -- <cite>Luca Garulli</cite>
> -- [Blog](https://blog.arcadedb.com/welcome-to-arcadedb)
## OrientDB Install

Expand Down Expand Up @@ -62,31 +71,33 @@ 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"
```

## 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`

Expand Down Expand Up @@ -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
```
5 changes: 4 additions & 1 deletion content/news/wsl-beauty/index.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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...

<!--more-->

## Get Started

Expand Down

0 comments on commit 5ac48ca

Please sign in to comment.