Are databases in container are myth? Not really, like 10 years ago when VMs and containers were the same myth. This talk show the approach it's almost the same with some things "more modern" like containers, microservices, etc.
3. Cache
An auxiliary memory from which high-speed retrieval is possible.
https://en.oxforddictionaries.com/definition/cache
4. Buffer
A temporary memory area in which data is stored while it is being processed or
transferred, especially one used while streaming video or downloading audio.
https://en.oxforddictionaries.com/definition/buffer
16. Union filesystem
It allows files and directories of separate file systems, known
as branches, to be transparently overlaid, forming a single
coherent file system.
18. Main filesytem for internal container data
AUFS
Overlayfs
Overlayfs2
Device-Mapper
Bind/Mount
19. Databases operation
Plan what type of workload to use
Maintain, organize and “improve” dataset together application
Install security fix releases
Archive “old” data (sanitize)
Upgrade Database version
Tuning OS, Database and Application
20. What’s means in OS
handle...
sysctl
/proc
/sys
limits
overcommit
21. What’s means in the PostgreSQL
Shared Buffers
WAL
Max_connections
Effective_cache_size
Checkpoint_segments
Random_page_cost
23. Why to use PostgreSQL within containers
Lower footprint to start
Easy to change postgresql.conf and use git to have history change (tracking)
Less surface attack in the “application
Can “restrict” Linux Capabilities within container
“Small” database by microservice
Use always a Container Storage
24. Tips
One database per type of workload
Take care to restrict network, consider restrict database access only own
application
Push database log to Monitoring system/service
Clusters and data replication are more complex
Database use intensive CPU and IO, think if there is another service with the same
workload type
Database is prepare to support two version of application (Deploy strategies without
downtime)
28. ● Bruce Momjian - Performance tuning
● Docker Volumes
● Kubernetes Volumes
● Oxford Dictionaries
● Formal requirements for virtualizable third generation architectures - Gerald J. Popek and Robert P. Goldberg
● CAP Theorem and Distributed Database Management Systems
References