Version 8 (modified by ntj, 11 years ago)
--

Edelweiss

Edelweiss


How to add extra parameters

  • add the new parameter definition to the CouchDB document with the ID itemlist.
  • add the new parameter to the view definition of get_all_data

Debugging

curl 'http://localhost/adei/services/getdata.php?db_server=edelweiss&db_name=automat_monthly&db_group=edelweiss&window=-5&db_mask=0,3'

http://localhost/adei/services/list.php?target=servers

curl 'http://localhost/adei/services/getdata.php?db_server=edelweiss&db_name=automat_weekly_adei&db_group=edelweiss&window=1307357533-1384790080&db_mask=0,1&resample=86400'

Note

Resample work

Resample works, but very very slow. Why? Because it is querying each data row per http request, for a aggregation with wide interval, this should not be a problem, but as the interval gets smaller, it will be very slow.

Solution: Requires a mapreduce function to do aggregation

Status: Pending

Data Query Speed

Currently the speed of caching is roughly 250kB/s on localhost. Pretty slow. Current approach uses a buffer to request 10 thousand data rows per http request. I feel that this can somewhat still be improve.

Idea: Uses socket

Idea: use multi exec curl

Status: Pending

Possible improvement

Till now CouchDB does not yet shows its strength, I personally think we need to look into how we can integrate better with the current system by using more of the mapreduce function.

Possible Bug

CouchDB does not define its stored filed, hence some float values is saved as string, this is a problem for ADEI caching in MySQL.

Solution: ADEI do a type check and convert it accordingly (cache.php)

Status: Pending (High priority)

Repository

http://adei.info/adei/browser/adei-couchreader

http://adei.info/adei/browser/adei-edelweiss-setup