Loading...

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()
Abc
host_name
Varchar(128)
123
open_files_limit
Integer
123
threads_limit
Integer
123
core_file_limit_max_size_bytes
Integer
123
processor_count
Integer
123
processor_core_count
Integer
Abc
Varchar(8192)
123
opened_file_count
Integer
123
opened_socket_count
Integer
123
opened_nonfile_nonsocket_count
Integer
123
total_memory_bytes
Integer
123
total_memory_free_bytes
Integer
123
total_buffer_memory_bytes
Integer
123
total_memory_cache_bytes
Integer
123
total_swap_memory_bytes
Integer
123
total_swap_memory_free_bytes
Integer
123
disk_space_free_mb
Integer
123
disk_space_used_mb
Integer
123
disk_space_total_mb
Integer
123
system_open_files
Integer
123
system_max_files
Integer
110.20.43.24010485763094405161278771227261318811214127104445606166528304373350432414616371221474795521375862784253600214060523942054187213051931
210.20.43.24110485763094398161107148827261322811212410880528219041792308688486426093386137621474795522089451520261997413220803942054176013051931
310.20.43.24210485763094399161113292827261118811212472320527806464000328368128026093278003221474795522120425472263333513087193942054172813051931
410.20.43.24310485763094399161113292827261118811212472320258251431936343208755252982362112021474795522112188416226145916805953942054158413051931
Rows: 1-4 | Columns: 21

Note

For more details, please look at QueryProfiler.