Skip to content

Instantly share code, notes, and snippets.

View Pothulapati's full-sized avatar
🎯
Focusing

Tarun Pothulapati Pothulapati

🎯
Focusing
View GitHub Profile
tarun_dragonflydb_io@tar-shake-test:~/RedisShake$ git diff .
diff --git a/internal/writer/redis_standalone_writer.go b/internal/writer/redis_standalone_writer.go
index 838b6a1..5460cc0 100644
--- a/internal/writer/redis_standalone_writer.go
+++ b/internal/writer/redis_standalone_writer.go
@@ -2,16 +2,13 @@ package writer
import (
"context"
- "errors"
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
#!/bin/bash
# script that reads configuration from VM tags using cloud-init
# updates the dragonfly configuration file
# and restarts the dragonfly service
# todo: make this work on GCP, and use the same script for both
# get `df-args` tag
curl http://169.254.169.254/latest/meta-data/tags/instance/df-args > /etc/dragonfly/df-args
This file has been truncated, but you can view the full file.
I20230426 09:35:19.898494 1 init.cc:56] dragonfly running in opt mode.
I20230426 09:35:19.898533 1 dfly_main.cc:568] Starting dragonfly df-v1.2.0-d78a9daaeb41df6e864c86c8c7903b505551d359
W20230426 09:35:19.898639 1 dfly_main.cc:596] SWAP is enabled. Consider disabling it when running Dragonfly.
I20230426 09:35:19.898648 1 dfly_main.cc:599] maxmemory has not been specified. Deciding myself....
I20230426 09:35:19.898651 1 dfly_main.cc:603] Found 400.00MiB available memory. Setting maxmemory to 320.00MiB
I20230426 09:35:19.924072 15 uring_proactor.cc:157] IORing with 1024 entries, allocated 102720 bytes, cq_entries is 2048
I20230426 09:35:19.927409 1 proactor_pool.cc:73] Running 1 io threads
I20230426 09:35:19.930955 1 server_family.cc:457] Data directory is "/data"
I20230426 09:35:19.931288 15 listener_interface.cc:96] sock[5] AcceptServer - listening on port 6379
I20230426 09:35:39.025148 15 server_family.cc:1838] Replicating NO:ONE
I20230426 09:37:44.524583 1 init.cc:56] dragonfly running in opt mode.
I20230426 09:37:44.524624 1 dfly_main.cc:467] Starting dragonfly df-v0.17.0-a3b5f0b54a6703d9571ef1a78b27da1cdb215cd3
I20230426 09:37:44.524634 1 dfly_main.cc:490] maxmemory has not been specified. Deciding myself....
I20230426 09:37:44.524677 1 dfly_main.cc:495] Found 21.00GiB available memory. Setting maxmemory to 16.80GiB
I20230426 09:37:44.548123 23 proactor.cc:413] IORing with 1024 entries, allocated 102720 bytes, cq_entries is 2048
I20230426 09:37:44.576256 1 proactor_pool.cc:66] Running 12 io threads
I20230426 09:37:44.577622 1 server_family.cc:420] Data directory is "/data"
I20230426 09:37:44.577739 17 listener_interface.cc:86] sock[39] AcceptServer - listening on port 6379
I20230426 09:37:45.274629 18 dfly_main.cc:229] Your current version '0.17.0' is not the latest version. A newer version '1.2.0' is now available. Please consider an update.
I20230426 09:37:57.538625 17 replica.cc:537] Started f
This file has been truncated, but you can view the full file.
I20230426 09:35:19.898494 1 init.cc:56] dragonfly running in opt mode.
I20230426 09:35:19.898533 1 dfly_main.cc:568] Starting dragonfly df-v1.2.0-d78a9daaeb41df6e864c86c8c7903b505551d359
W20230426 09:35:19.898639 1 dfly_main.cc:596] SWAP is enabled. Consider disabling it when running Dragonfly.
I20230426 09:35:19.898648 1 dfly_main.cc:599] maxmemory has not been specified. Deciding myself....
I20230426 09:35:19.898651 1 dfly_main.cc:603] Found 400.00MiB available memory. Setting maxmemory to 320.00MiB
I20230426 09:35:19.924072 15 uring_proactor.cc:157] IORing with 1024 entries, allocated 102720 bytes, cq_entries is 2048
I20230426 09:35:19.927409 1 proactor_pool.cc:73] Running 1 io threads
I20230426 09:35:19.930955 1 server_family.cc:457] Data directory is "/data"
I20230426 09:35:19.931288 15 listener_interface.cc:96] sock[5] AcceptServer - listening on port 6379
I20230426 09:35:39.025148 15 server_family.cc:1838] Replicating NO:ONE
This file has been truncated, but you can view the full file.
I20230426 09:35:19.898494 1 init.cc:56] dragonfly running in opt mode.
I20230426 09:35:19.898533 1 dfly_main.cc:568] Starting dragonfly df-v1.2.0-d78a9daaeb41df6e864c86c8c7903b505551d359
W20230426 09:35:19.898639 1 dfly_main.cc:596] SWAP is enabled. Consider disabling it when running Dragonfly.
I20230426 09:35:19.898648 1 dfly_main.cc:599] maxmemory has not been specified. Deciding myself....
I20230426 09:35:19.898651 1 dfly_main.cc:603] Found 400.00MiB available memory. Setting maxmemory to 320.00MiB
I20230426 09:35:19.924072 15 uring_proactor.cc:157] IORing with 1024 entries, allocated 102720 bytes, cq_entries is 2048
I20230426 09:35:19.927409 1 proactor_pool.cc:73] Running 1 io threads
I20230426 09:35:19.930955 1 server_family.cc:457] Data directory is "/data"
I20230426 09:35:19.931288 15 listener_interface.cc:96] sock[5] AcceptServer - listening on port 6379
I20230426 09:35:39.025148 15 server_family.cc:1838] Replicating NO:ONE
2023-04-24T10:39:08Z INFO controller-runtime.metrics Metrics server is starting to listen {"addr": "127.0.0.1:8080"}
2023-04-24T10:39:08Z INFO setup starting manager
I0424 10:39:08.125347 1 leaderelection.go:248] attempting to acquire leader lease dragonfly-operator-system/31079dea.dragonflydb.io...
2023-04-24T10:39:08Z INFO Starting server {"path": "/metrics", "kind": "metrics", "addr": "127.0.0.1:8080"}
2023-04-24T10:39:08Z INFO Starting server {"kind": "health probe", "addr": "[::]:8081"}
I0424 10:39:08.129063 1 leaderelection.go:258] successfully acquired lease dragonfly-operator-system/31079dea.dragonflydb.io
2023-04-24T10:39:08Z DEBUG events dragonfly-operator-controller-manager-78d587fbd9-k8zmw_c4c7cc7e-0336-4d01-8a49-44437a1f5cf7 became leader {"type": "Normal", "object": {"kind":"Lease","namespace":"dragonfly-operator-system","name":"31079dea.dragonflydb.io","uid":"52ca94b9-3253-4d3f-8db4-7103ed5a894c","apiVersion":"coordination.k8s.io/v1","resourceVersion":"530"}, "reason": "LeaderElecti
# HELP dragonfly_version
# TYPE dragonfly_version gauge
dragonfly_version{version="df-d9f45f3"} 1
# HELP dragonfly_uptime_in_seconds
# TYPE dragonfly_uptime_in_seconds gauge
dragonfly_uptime_in_seconds 850
# HELP dragonfly_connected_clients
# TYPE dragonfly_connected_clients gauge
dragonfly_connected_clients 13
# HELP dragonfly_client_read_buf_capacity
# HELP dragonfly_version
# TYPE dragonfly_version gauge
dragonfly_version{version="df-d9f45f3"} 1
# HELP dragonfly_uptime_in_seconds
# TYPE dragonfly_uptime_in_seconds gauge
dragonfly_uptime_in_seconds 154
# HELP dragonfly_connected_clients
# TYPE dragonfly_connected_clients gauge
dragonfly_connected_clients 14
# HELP dragonfly_client_read_buf_capacity