[Tarantool-patches] [PATCH v2 5/5] feedback_daemon: count and report some events

Serge Petrenko sergepetrenko at tarantool.org
Tue Apr 13 13:38:14 MSK 2021



13.04.2021 11:31, Alexander Turenko пишет:
>> @@ -462,6 +468,8 @@ box.schema.space.create = function(name, options)
>>       })
>>       _space:insert{id, uid, name, options.engine, options.field_count,
>>           space_options, format}
>> +
>> +    feedback_save_event('create_space')
>>       return box.space[id], "created"
>>   end
> What the counter will show, if I bootstrap an instance from an existing
> snapshot with N spaces and add one more?
The counter will be 1 again. It shows 'how many events have occured 
since tarantool
startup`. An event here is user calling `box.schema.space.create`
>
> Will it count spaces that starts from the underscore symbol (queue and
> memcached modules create such spaces)?

Yes, it counts every space which was created with `box.schema.space.create`.

If you do `_space:insert{new_space_id, new_space_name, ...}` (I don't 
remember
the exact format but you get the idea), such an event won't
be counted.
>
> WBR, Alexander Turenko.

-- 
Serge Petrenko



More information about the Tarantool-patches mailing list