Related issue
https://github.com/longhorn/longhorn/issues/5235
Test step
Given Patch build and deploy Longhorn.
diff --git a/controller/setting_controller.go b/controller/setting_controller.go
index de77b7246..ac6263ac5 100644
--- a/controller/setting_controller.go
+++ b/controller/setting_controller.go
@@ -49,7 +49,7 @@ const (
var (
upgradeCheckInterval = time.Hour
settingControllerResyncPeriod = time.Hour
- checkUpgradeURL = "https://longhorn-upgrade-responder.rancher.io/v1/checkupgrade"
+ checkUpgradeURL = "http://longhorn-upgrade-responder.default.svc.cluster.local:8314/v1/checkupgrade"
)
type SettingController struct {
Match the checkUpgradeURL with the application name:
http://<APP_NAME>-upgrade-responder.default.svc.cluster.local:8314/v1/checkupgrade
And Deploy upgrade responder stack.
When Wait 1~2 hours for collection data to send to the influxDB database.
Then Collection data should exist the influxDB database.
app_name="longhorn"
influxdb_pod=$(kubectl get pod | grep influxdb | awk '{print $1}' | head -n 1)
kubectl exec -it ${influxdb_pod} -- influx -execute 'SHOW TAG KEYS FROM upgrade_request' -database="${app_name}_upgrade_responder"
Sample output:
name: upgrade_request
tagKey
------
app_version
host_kernel_release
host_os_distro
kubernetes_node_provider
kubernetes_version
longhorn_setting_allow_recurring_job_while_volume_detached
longhorn_setting_allow_volume_creation_with_degraded_availability
longhorn_setting_auto_cleanup_system_generated_snapshot
longhorn_setting_auto_delete_pod_when_volume_detached_unexpectedly
longhorn_setting_auto_salvage
longhorn_setting_backup_compression_method
longhorn_setting_backup_target
longhorn_setting_crd_api_version
longhorn_setting_create_default_disk_labeled_nodes
longhorn_setting_default_data_locality
longhorn_setting_disable_revision_counter
longhorn_setting_disable_scheduling_on_cordoned_node
longhorn_setting_fast_replica_rebuild_enabled
longhorn_setting_kubernetes_cluster_autoscaler_enabled
longhorn_setting_node_down_pod_deletion_policy
longhorn_setting_node_drain_policy
longhorn_setting_offline_replica_rebuilding
longhorn_setting_orphan_auto_deletion
longhorn_setting_priority_class
longhorn_setting_registry_secret
longhorn_setting_remove_snapshots_during_filesystem_trim
longhorn_setting_replica_auto_balance
longhorn_setting_replica_soft_anti_affinity
longhorn_setting_replica_zone_soft_anti_affinity
longhorn_setting_restore_volume_recurring_jobs
longhorn_setting_snapshot_data_integrity
longhorn_setting_snapshot_data_integrity_cronjob
longhorn_setting_snapshot_data_integrity_immediate_check_after_snapshot_creation
longhorn_setting_storage_network
longhorn_setting_system_managed_components_node_selector
longhorn_setting_system_managed_pods_image_pull_policy
longhorn_setting_taint_toleration
longhorn_setting_v2_data_engine
kubectl exec -it ${influxdb_pod} -- influx -execute 'SHOW FIELD KEYS FROM upgrade_request' -database="${app_name}_upgrade_responder"
Sample output:
name: upgrade_request
fieldKey fieldType
-------- ---------
longhorn_instance_manager_average_cpu_usage_milli_cores float
longhorn_instance_manager_average_memory_usage_bytes float
longhorn_manager_average_cpu_usage_milli_cores float
longhorn_manager_average_memory_usage_bytes float
longhorn_namespace_uid string
longhorn_node_count float
longhorn_node_disk_ssd_count float
longhorn_setting_backing_image_cleanup_wait_interval float
longhorn_setting_backing_image_recovery_wait_interval float
longhorn_setting_backup_concurrent_limit float
longhorn_setting_backupstore_poll_interval float
longhorn_setting_concurrent_automatic_engine_upgrade_per_node_limit float
longhorn_setting_concurrent_replica_rebuild_per_node_limit float
longhorn_setting_concurrent_volume_backup_restore_per_node_limit float
longhorn_setting_default_replica_count float
longhorn_setting_engine_replica_timeout float
longhorn_setting_failed_backup_ttl float
longhorn_setting_guaranteed_instance_manager_cpu float
longhorn_setting_recurring_failed_jobs_history_limit float
longhorn_setting_recurring_successful_jobs_history_limit float
longhorn_setting_replica_file_sync_http_client_timeout float
longhorn_setting_replica_replenishment_wait_interval float
longhorn_setting_restore_concurrent_limit float
longhorn_setting_storage_minimal_available_percentage float
longhorn_setting_storage_over_provisioning_percentage float
longhorn_setting_storage_reserved_percentage_for_default_disk float
longhorn_setting_support_bundle_failed_history_limit float
longhorn_volume_access_mode_rwo_count float
longhorn_volume_access_mode_rwx_count float
longhorn_volume_average_actual_size_bytes float
longhorn_volume_average_number_of_replicas float
longhorn_volume_average_size_bytes float
longhorn_volume_average_snapshot_count float
longhorn_volume_data_locality_best_effort_count float
longhorn_volume_data_locality_disabled_count float
longhorn_volume_data_locality_strict_local_count float
longhorn_volume_frontend_blockdev_count float
longhorn_volume_offline_replica_rebuilding_disabled_count float
longhorn_volume_offline_replica_rebuilding_enabled_count float
longhorn_volume_replica_auto_balance_disabled_count float
longhorn_volume_replica_soft_anti_affinity_false_count float
longhorn_volume_replica_zone_soft_anti_affinity_true_count float
longhorn_volume_restore_volume_recurring_job_false_count float
longhorn_volume_snapshot_data_integrity_disabled_count float
longhorn_volume_snapshot_data_integrity_fast_check_count float
longhorn_volume_unmap_mark_snap_chain_removed_false_count float
value integer