Metriche delle prestazioniPerformance metrics

Per comprendere le prestazioni del cluster e delle applicazioni in esecuzione al suo interno è necessario raccogliere alcune metriche.Metrics should be collected to understand the performance of your cluster as well as the applications running in it. Per i cluster di Service Fabric è consigliabile raccogliere i contatori delle prestazioni seguenti.For Service Fabric clusters, we recommend collecting the following performance counters.

NodiNodes

Per i computer presenti nel cluster è opportuno raccogliere i contatori delle prestazioni seguenti per comprendere meglio il carico di ogni computer e prendere decisioni appropriate sulla scalabilità del cluster.For the machines in your cluster, consider collecting the following performance counters to better understand the load on each machine and make appropriate cluster scaling decisions.

Categoria contatoreCounter Category Nome contatoreCounter Name
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Avg. Disk Read Queue LengthAvg. Disk Read Queue Length
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Avg. Disk Write Queue LengthAvg. Disk Write Queue Length
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Avg. Disk sec/ReadAvg. Disk sec/Read
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Avg. Disk sec/WriteAvg. Disk sec/Write
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Letture disco/sec Disk Reads/sec
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Byte letti da disco/sec Disk Read Bytes/sec
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Scritture disco/secDisk Writes/sec
PhysicalDisk(per Disk)PhysicalDisk(per Disk) Byte scritti su disco/secDisk Write Bytes/sec
MemoriaMemory MByte disponibiliAvailable MBytes
PagingFilePagingFile % Usage% Usage
Processor(Total)Processor(Total) % di tempo processore% Processor Time
Process (per service)Process (per service) % di tempo processore% Processor Time
Process (per service)Process (per service) ID ProcessID Process
Process (per service)Process (per service) Private BytesPrivate Bytes
Process (per service)Process (per service) Thread CountThread Count
Process (per service)Process (per service) Virtual BytesVirtual Bytes
Process (per service)Process (per service) Working SetWorking Set
Process (per service)Process (per service) Working Set - PrivateWorking Set - Private
Network Interface(all-instances)Network Interface(all-instances) Lunghezza della coda di outputOutput Queue Length
Network Interface(all-instances)Network Interface(all-instances) Pacchetti in uscita scartatiPackets Outbound Discarded
Network Interface(all-instances)Network Interface(all-instances) Pacchetti ricevuti scartatiPackets Received Discarded
Network Interface(all-instances)Network Interface(all-instances) Errori pacchetti in uscitaPackets Outbound Errors
Network Interface(all-instances)Network Interface(all-instances) Errori pacchetti ricevutiPackets Received Errors

Applicazioni e servizi .NET.NET applications and services

Se si distribuiscono servizi .NET nel cluster, raccogliere i contatori seguenti.Collect the following counters if you are deploying .NET services to your cluster.

Categoria contatoreCounter Category Nome contatoreCounter Name
.NET CLR Memory (per service).NET CLR Memory (per service) ID di processoProcess ID
.NET CLR Memory (per service).NET CLR Memory (per service) # Total committed Bytes# Total committed Bytes
.NET CLR Memory (per service).NET CLR Memory (per service) # Total reserved Bytes# Total reserved Bytes
.NET CLR Memory (per service).NET CLR Memory (per service) # Bytes in all Heaps# Bytes in all Heaps
.NET CLR Memory (per service).NET CLR Memory (per service) # Gen 0 Collections# Gen 0 Collections
.NET CLR Memory (per service).NET CLR Memory (per service) # Gen 1 Collections# Gen 1 Collections
.NET CLR Memory (per service).NET CLR Memory (per service) # Gen 2 Collections# Gen 2 Collections
.NET CLR Memory (per service).NET CLR Memory (per service) Percentuale tempo in GC% Time in GC

Contatori delle prestazioni personalizzati di Service FabricService Fabric's custom performance counters

Service Fabric genera una quantità significativa di contatori delle prestazioni personalizzati.Service Fabric generates a substantial amount of custom performance counters. Se è installato l'SDK, è possibile visualizzare l'elenco completo disponibile nel computer Windows mediante l'applicazione Performance Monitor (Start > Performance Monitor).If you have the SDK installed, you can see the comprehensive list on your Windows machine in your Performance Monitor application (Start > Performance Monitor).

Se si usa Reliable Actors, nelle applicazioni che si sta distribuendo nel cluster aggiungere i contatori delle categorie Service Fabric Actor e Service Fabric Actor Method (vedere Diagnostica e monitoraggio delle prestazioni per Reliable Actors).In the applications you are deploying to your cluster, if you are using Reliable Actors, add countes from Service Fabric Actor and Service Fabric Actor Method categories (see Service Fabric Reliable Actors Diagnostics).

Analogamente, se si usa Reliable Services, è necessario raccogliere i contatori delle categorie Service Fabric Service e Service Fabric Service Method.If you use Reliable Services, we similarly have Service Fabric Service and Service Fabric Service Method counter categories that you should collect counters from.

Se si usa Reliable Collection, infine, è consigliabile aggiungere il contatore Avg. Transaction ms/Commit della categoria Service Fabric Transactional Replicator per raccogliere la latenza di commit media per ogni transazione.If you use Reliable Collections, we recommend adding the Avg. Transaction ms/Commit from the Service Fabric Transactional Replicator to collect the average commit latency per transaction metric.

Passaggi successiviNext steps