Algorithm improvement-persistent data structure

Persistent data structure What data structures can be persisted Persistible segment tree (chairman tree) AcWing 255. Kth decimal durable trie AcWing 256. Maximum XOR Sum What kind of data structure can be persisted Only data structures whose topological order remains unchanged during operation can be persisted (refer to the beginning of the y total teaching […]

redis series 16 persistent RDB

1. Overview Redis is an in-memory database. Once the server process exits, the state of the database memory data in the server will also disappear. In order to solve this problem, Redis provides RDB persistence function, which can save the database state of redis in memory to disk to avoid accidental data loss. RDB persistence […]

syssystemd log journalctl log persistent storage (journal log, persistent log) (/etc/systemd/journald.conf analysis) log log capacity upper limit, SystemMaxUse

Article directory Systemd Journalctl log persistence configuration 1. Overview of systemd and journalctl 2. The importance of journalctl log persistence 3. Configure journalctl log persistence 4. Use journalctl for log query 5. Manage journalctl log file size 6. View the log file to verify the persistence function 7. Troubleshooting and Best Practices 8. Conclusion appendix […]

[kubernetes] persistent volume PV, PVC

Directory The interaction between PV and PVC follows this life cycle According to these 5 stages, there are 4 states of PV as follows The specific process of a PV from creation to destruction is as follows Static PV creation 1. Configure nfs storage 2. Define PV 3. Define PVC 4. Test access Dynamic PV […]

springboot integrated websocket persistent connection (permission filtering + interception)

Article directory 1. Why use WebSocket? 2. Configuration method 1: Implement ServletContextInitializer + @ServerEndpoint annotation 2.1, WebSocket configuration 2.2, WebSocket connection, @ServerEndpoint 2.3, WebSocket request filtering 2.4, postman establishes a client connection 3. Configuration method 2: implement WebSocketConfigurer + inherit TextWebSocketHandler 3.1. Configuration: implement WebSocketConfigurer 3.2. Configuration: WebSocket handshake to realize the interception of websocket […]

Local Persistent Volumes

Local Persistent Volumes The local volume static provisioner manages the PersistentVolume lifecycle of pre-allocated disks by detecting and creating PVs for each local disk on the host, and cleaning up the disks when they are freed. It does not support dynamic configuration. sig-storage-local-static-provisioner A local persistent volume represents a local disk directly-attached to a single […]

Redis persistent RDB and AOF

Redis persistent RDB and AOF Redis has two persistence schemes, RDB (Redis DataBase) and AOF (Append Only File). If you want to quickly understand and use RDB and AOF, you can skip to the bottom of the article to see the summary. This chapter learns the key knowledge of Redis persistence through configuration files, ways […]

yapi containerized docker deployment and persistent mounting exception of mongodb container

Overview To deploy yapi in the form of docker, you need to prepare a mongodb, and then write the Dockerfile directly in an empty folder, and download the zip package of yapi through wget. Basically follow this article: https://www.modb.pro/db/149666 to deal with it 1. Prepare mongodb Run the docker of mongodb, –auth means that a […]