1 /* ------------------------------------------------
2 Copyright 2014 AT&T Intellectual Property
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
7 http://www.apache.org/licenses/LICENSE-2.0
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ------------------------------------------- */
19 /* statiss are collected by FTAs and regularly sent to cluster manager (currently every 1 sec)
20 * Statistics refers to time interval since the last time statistics was reported */
21 typedef struct fta_stat {
23 gs_uint32_t in_tuple_cnt; /* # of tuples received */
24 gs_uint32_t out_tuple_cnt; /* # of tuples produced */
25 gs_uint32_t out_tuple_sz; /* bytes in produced tuples */
26 gs_uint32_t accepted_tuple_cnt; /* # of tuples that passed initial unpacking and selection predicate */
27 gs_uint64_t cycle_cnt; /* # of cpu cycles spent in accept_tuple */
28 gs_uint32_t collision_cnt; /* # of collisions in an aggregation hash table */
29 gs_uint32_t eviction_cnt; /* # of collisions in an aggregation hash table */
30 gs_float_t sampling_rate; /* sampling rate used by fta */
32 /* ...will add more fields in the future... */
35 #endif /* FTA_STAT_H */