
verticapy.performance.vertica.qprof.QueryProfiler.get_cluster_config¶
- QueryProfiler.get_cluster_config() vDataFrame ¶
Returns the Cluster configuration.
Returns¶
- vDataFrame
report.
Examples¶
First, let’s import the
QueryProfiler
object.from verticapy.performance.vertica import QueryProfiler
Then we can create a query:
qprof = QueryProfiler( "select transaction_id, statement_id, request, request_duration" " from query_requests where start_timestamp > now() - interval'1 hour'" " order by request_duration desc limit 10;" )
To get cluster configuration details, we can conveniently call the function:
qprof.get_cluster_config()
Abchost_name123open_files_limit123threads_limit123core_file_limit_max_size_bytes123processor_count123processor_core_countAbc123opened_file_count123opened_socket_count123opened_nonfile_nonsocket_count123total_memory_bytes123total_memory_free_bytes123total_buffer_memory_bytes123total_memory_cache_bytes123total_swap_memory_bytes123total_swap_memory_free_bytes123disk_space_free_mb123disk_space_used_mb123disk_space_total_mb123system_open_files123system_max_files1 127.0.0.1 1048576 255422 0 1 20 6 10 10 33485598720 13736443904 315035648 5809098752 8589934592 8589934592 953822 77195 1031018 3880 9223372036854775807 Rows: 1-1 | Columns: 21Note
For more details, please look at
QueryProfiler
.