|
315 | 315 | <th>Region Server</th> |
316 | 316 | <th>ReadRequests</th> |
317 | 317 | <th>WriteRequests</th> |
| 318 | + <th>Uncompressed StoreFileSize</th> |
318 | 319 | <th>StorefileSize</th> |
319 | 320 | <th>Num.Storefiles</th> |
320 | 321 | <th>MemSize</th> |
|
338 | 339 | String hostAndPort = ""; |
339 | 340 | String readReq = "N/A"; |
340 | 341 | String writeReq = "N/A"; |
| 342 | + String fileSizeUncompressed = ZEROMB; |
341 | 343 | String fileSize = ZEROMB; |
342 | 344 | String fileCount = "N/A"; |
343 | 345 | String memSize = ZEROMB; |
|
356 | 358 | if (rSize > 0) { |
357 | 359 | fileSize = StringUtils.byteDesc((long) rSize); |
358 | 360 | } |
| 361 | + double rSizeUncompressed = load.getUncompressedStoreFileSize().get(Size.Unit.BYTE); |
| 362 | + if (rSizeUncompressed > 0) { |
| 363 | + fileSizeUncompressed = StringUtils.byteDesc((long) rSizeUncompressed); |
| 364 | + } |
359 | 365 | fileCount = String.format("%,1d", load.getStoreFileCount()); |
360 | 366 | double mSize = load.getMemStoreSize().get(Size.Unit.BYTE); |
361 | 367 | if (mSize > 0) { |
|
370 | 376 | <td><a href="http://<%= hostAndPort %>/rs-status"><%= StringEscapeUtils.escapeHtml4(hostAndPort) %></a></td> |
371 | 377 | <td><%= readReq%></td> |
372 | 378 | <td><%= writeReq%></td> |
| 379 | + <td><%= fileSizeUncompressed%></td> |
373 | 380 | <td><%= fileSize%></td> |
374 | 381 | <td><%= fileCount%></td> |
375 | 382 | <td><%= memSize%></td> |
|
834 | 841 | <% |
835 | 842 | long totalReadReq = 0; |
836 | 843 | long totalWriteReq = 0; |
| 844 | + long totalSizeUncompressed = 0; |
837 | 845 | long totalSize = 0; |
838 | 846 | long totalStoreFileCount = 0; |
839 | 847 | long totalMemSize = 0; |
|
844 | 852 | long totalBlocksLocalWithSsdWeight = 0; |
845 | 853 | String totalCompactionProgress = ""; |
846 | 854 | String totalMemSizeStr = ZEROMB; |
| 855 | + String totalSizeUncompressedStr = ZEROMB; |
847 | 856 | String totalSizeStr = ZEROMB; |
848 | 857 | String totalLocality = ""; |
849 | 858 | String totalLocalityForSsd = ""; |
|
865 | 874 | if (regionMetrics != null) { |
866 | 875 | totalReadReq += regionMetrics.getReadRequestCount(); |
867 | 876 | totalWriteReq += regionMetrics.getWriteRequestCount(); |
| 877 | + totalSizeUncompressed += regionMetrics.getUncompressedStoreFileSize().get(Size.Unit.MEGABYTE); |
868 | 878 | totalSize += regionMetrics.getStoreFileSize().get(Size.Unit.MEGABYTE); |
869 | 879 | totalStoreFileCount += regionMetrics.getStoreFileCount(); |
870 | 880 | totalMemSize += regionMetrics.getMemStoreSize().get(Size.Unit.MEGABYTE); |
|
890 | 900 | if (totalSize > 0) { |
891 | 901 | totalSizeStr = StringUtils.byteDesc(totalSize*1024l*1024); |
892 | 902 | } |
| 903 | + if (totalSizeUncompressed > 0){ |
| 904 | + totalSizeUncompressedStr = StringUtils.byteDesc(totalSizeUncompressed*1024l*1024); |
| 905 | + } |
893 | 906 | if (totalMemSize > 0) { |
894 | 907 | totalMemSizeStr = StringUtils.byteDesc(totalMemSize*1024l*1024); |
895 | 908 | } |
|
920 | 933 | <th>Region Server</th> |
921 | 934 | <th>ReadRequests<br>(<%= String.format("%,1d", totalReadReq)%>)</th> |
922 | 935 | <th>WriteRequests<br>(<%= String.format("%,1d", totalWriteReq)%>)</th> |
| 936 | + <th>Uncompressed StoreFileSize<br>(<%= totalSizeUncompressedStr %>)</th> |
923 | 937 | <th>StorefileSize<br>(<%= totalSizeStr %>)</th> |
924 | 938 | <th>Num.Storefiles<br>(<%= String.format("%,1d", totalStoreFileCount)%>)</th> |
925 | 939 | <th>MemSize<br>(<%= totalMemSizeStr %>)</th> |
|
944 | 958 | RegionMetrics load = hriEntry.getValue(); |
945 | 959 | String readReq = "N/A"; |
946 | 960 | String writeReq = "N/A"; |
| 961 | + String regionSizeUncompressed = ZEROMB; |
947 | 962 | String regionSize = ZEROMB; |
948 | 963 | String fileCount = "N/A"; |
949 | 964 | String memSize = ZEROMB; |
950 | 965 | String state = "N/A"; |
951 | 966 | if (load != null) { |
952 | 967 | readReq = String.format("%,1d", load.getReadRequestCount()); |
953 | 968 | writeReq = String.format("%,1d", load.getWriteRequestCount()); |
| 969 | + double rSizeUncompressed = load.getUncompressedStoreFileSize().get(Size.Unit.BYTE); |
| 970 | + if (rSizeUncompressed > 0) { |
| 971 | + regionSizeUncompressed = StringUtils.byteDesc((long)rSizeUncompressed); |
| 972 | + } |
954 | 973 | double rSize = load.getStoreFileSize().get(Size.Unit.BYTE); |
955 | 974 | if (rSize > 0) { |
956 | 975 | regionSize = StringUtils.byteDesc((long)rSize); |
|
987 | 1006 | <%= buildRegionDeployedServerTag(regionInfo, master, regionsToServer) %> |
988 | 1007 | <td><%= readReq%></td> |
989 | 1008 | <td><%= writeReq%></td> |
| 1009 | + <td><%= regionSizeUncompressed%></td> |
990 | 1010 | <td><%= regionSize%></td> |
991 | 1011 | <td><%= fileCount%></td> |
992 | 1012 | <td><%= memSize%></td> |
|
0 commit comments