integra on of billing accoun ng plots dcache 2 1
play

Integra(on of Billing (Accoun(ng) Plots ( dCache 2.1+) - PowerPoint PPT Presentation

Integra(on of Billing (Accoun(ng) Plots ( dCache 2.1+) Albert L. Rossi Fermi Na(onal Accelerator Laboratory Accoun(ng ( dCache Book , Chpt. 24) For dCache


  1. Integra(on ¡of ¡Billing ¡(Accoun(ng) ¡Plots ¡ ( dCache ¡2.1+) ¡ Albert ¡L. ¡Rossi ¡ Fermi ¡Na(onal ¡Accelerator ¡ Laboratory ¡

  2. Accoun(ng ¡( dCache ¡Book , ¡Chpt. ¡24) ¡ For ¡ dCache ¡1.9.12+, ¡accoun2ng ¡data ¡is ¡logged ¡to ¡file: ¡ ¡ ¡ ¡ ¡ ¡ ${BILLING_DIR} ¡/ <YYYY> / <MM> /billing-­‑ <YYYY.MM.DD> ¡ ¡where ¡ ¡ ¡ ¡ ¡ BILLING_DIR ¡= ¡/opt/d-­‑cache/billing ¡ OR ¡/var/lib/dcache/billing ¡[FHS] ¡ • entries ¡such ¡as: ¡ 05.31 ¡22:35:16 ¡[pool: <pool-­‑name> :transfer] ¡[000100000000000000001320,24675] ¡myStore:STRING@osm ¡24675 ¡474 ¡ ¡ ¡ ¡ ¡true ¡{GFtp-­‑1.0 ¡ <client-­‑host-­‑fqn> ¡37592} ¡{0:""} ¡ ¡ ¡ track ¡informa2on ¡concerning ¡pool ¡and ¡ • door ¡ac2vity ¡(reads/writes, ¡number ¡of ¡ transac2ons, ¡connec2on ¡2me, ¡etc.) ¡-­‑-­‑ ¡ FULL ¡ EXPLANATION ¡ IN ¡ billing.proper9es ¡ file ¡ (see ¡slides ¡on ¡ Configura(on ); ¡ summary ¡displayed ¡on ¡sta2c ¡web ¡ • page ¡under ¡Ac2on ¡Log ¡link: ¡ 4/18/12 ¡ 2 ¡

  3. Accoun(ng/Billing ¡Plots ¡ For ¡ dCache ¡2.1+, ¡selected ¡accoun2ng ¡data ¡can ¡also ¡be ¡displayed ¡in ¡ graphic ¡form ¡as ¡histogram ¡plots: ¡ – Up ¡to ¡2.2, ¡these ¡are ¡linked ¡off ¡of ¡the ¡same ¡main ¡sta2c ¡web ¡page ¡(usually ¡ running ¡on ¡port ¡2288) ¡under ¡the ¡ Sta8s8cs ¡rubric ¡as ¡History ¡[“ Daily, ¡ Weekly, ¡Monthly ¡and ¡Yearly ¡transfer ¡histograms ”]); ¡ – A_er ¡2.2, ¡these ¡will ¡appear ¡as ¡the ¡Billing ¡page ¡on ¡the ¡ webadmin ¡module ¡ (usually ¡running ¡on ¡port ¡8081). ¡ Aggregate ¡data ¡for ¡24-­‑hour, ¡7-­‑day, ¡30-­‑day ¡and ¡365-­‑day ¡periods: ¡ ¡ 1. (Giga)bytes ¡read ¡and ¡wriden ¡for ¡ dCache ¡and ¡HSM ¡backend; ¡ 2. Number ¡of ¡transac2ons/transfers ¡for ¡ dCache ¡and ¡HSM ¡backend; ¡ 3. Maximum, ¡minimum ¡and ¡average ¡connec2on ¡2me; ¡ 4. Cache ¡hits ¡and ¡misses*; ¡ 5. Pool ¡cost*. ¡ ¡ (*= ¡will ¡be ¡implemented ¡soon) ¡ 4/18/12 ¡ 3 ¡

  4. Examples ¡ hdp://fnisd1.fnal.gov:8081/webadmin/billingplots ¡ ¡ ¡ ¡ T IME ¡P ERIOD ¡ P LOT ¡T YPE ¡ ( Click ¡on ¡image ¡to ¡enlarge ) ¡ 4/18/12 ¡ 4 ¡

  5. Examples ¡ hdp://fnisd1.fnal.gov:8081/webadmin/billingplots ¡ ¡ ¡ ¡ 4/18/12 ¡ 5 ¡

  6. Configura(on ¡(1) ¡ Full ¡informa2on ¡on ¡senngs ¡is ¡available ¡in ¡the ¡proper2es ¡file: ¡ ¡ ¡ ${dcache.home}/skel/share/defaults/billing.proper8es ¡ Text ¡logging ¡can ¡be ¡turned ¡on/off; ¡log ¡directory ¡relocated, ¡etc. ¡ (the ¡admin ¡interface ¡for ¡the ¡billing ¡cell ¡also ¡offers ¡a ¡few ¡more ¡controls ¡ like ¡turning ¡monitoring ¡messages ¡on/off, ¡dumping ¡pool ¡sta2s2cs, ¡etc.) ¡ Plots ¡require ¡the ¡presence ¡of ¡an ¡RDBMS: ¡ – Manual ¡install ¡and ¡crea2on ¡of ¡“billing” ¡database; ¡ – Automated ¡crea2on ¡of ¡all ¡the ¡necessary ¡tables, ¡indices ¡and ¡triggers ¡ (via ¡ Liquibase ); ¡ – Two ¡SQL ¡scripts ¡are ¡provided ¡to ¡aid ¡in ¡data ¡migra2on ¡from ¡previous ¡ installa2ons ¡(at ¡FNAL; ¡not ¡sure ¡relevant ¡elsewhere); ¡see ¡ ¡ ¡ ¡ ¡ ${dcache.home}/skel/share/migra8on ¡ 4/18/12 ¡ 6 ¡

  7. Configura(on ¡(2) ¡ Out-­‑of-­‑the-­‑box ¡requires ¡you ¡to ¡define ¡very ¡few ¡proper2es ¡(as ¡ usual, ¡in ¡your ¡layout ¡file): ¡ – the ¡only ¡one ¡you ¡must ¡change ¡ ¡ ¡ billingToDb ¡ ¡ yes ¡ -­‑-­‑ ¡ defaults ¡to ¡ no ¡ – you ¡may ¡also ¡need ¡to ¡alter ¡these ¡depending ¡on ¡your ¡setup ¡ ¡ billingDbDriver ¡defaults ¡to ¡ org.postgresql.Driver ¡ ¡ ¡ ¡billingDbHost ¡ ¡defaults ¡to ¡ localhost ¡ ¡ ¡billingDbUser ¡ ¡defaults ¡to ¡ srmdcache ¡ ¡ ¡billingDbPass ¡ ¡defaults ¡to ¡ srmdcache ¡ ¡ ¡billingDbUrl ¡ ¡defaults ¡to ¡ jdbc:postgresql://${billingDbHost}/${billingDbName} ¡ ¡ All ¡other ¡senngs ¡will ¡very ¡rarely ¡need ¡to ¡be ¡changed. ¡ ¡ 4/18/12 ¡ 7 ¡

  8. Configura(on ¡(3) ¡ Run ¡billing ¡cell ¡on ¡same ¡host ¡as ¡the ¡web ¡domain, ¡whether ¡ ¡ in ¡hfpd, ¡webadmin ¡(or ¡other...) ¡domain. ¡ ... ¡ ... ¡ [hdpdDomain] ¡ [webadminDomain] ¡ billingToDb=yes ¡ billingToDb=yes ¡ billingDbHost=dmsen01 ¡ billingDbUser=enstore ¡ billingDbHost=dmsen01 ¡ billingDbPass= ¡ billingDbUser=enstore ¡ [hdpdDomain/billing] ¡ billingDbPass= ¡ [hdpdDomain/srm-­‑loginbroker] ¡ [hdpdDomain/hdpd] ¡ [webadminDomain/billing] ¡ ... ¡ [webadminDomain/webadmin] ¡ ... ¡ B ILLING ¡P ROPERTIES ¡ 4/18/12 ¡ 8 ¡

  9. Advanced ¡Configura(on ¡ Implementa2on ¡of ¡plonng ¡relies ¡on: ¡ ¡ – DataNucleus ¡(see ¡hdp://www.datanucleus.org) ¡ – JAIDA ¡(see ¡hdp://java.freehep.org/jaida) ¡ ¡ Customiza2on ¡would ¡involve ¡providing ¡special ¡ proper2es ¡files ¡for ¡these ¡two ¡layers ¡to ¡override ¡internal ¡ senngs: ¡ ¡ • billingInfoAccessProper9esFile ¡ • billingPlotProper9esFile ¡ ¡ Anyone ¡interested ¡in ¡this ¡should ¡send ¡me ¡an ¡email: ¡ ¡ ¡ ¡ ¡arossi@fnal.gov ¡ 4/18/12 ¡ 9 ¡

  10. Support ¡ What ¡other ¡kinds ¡of ¡histograms/aggregate ¡ data ¡would ¡be ¡useful ¡to ¡display? ¡ ¡ Send ¡feedback, ¡sugges2ons, ¡or ¡ques2ons ¡to: ¡ ¡team@dcache.org ¡ ¡and/or ¡ ¡arossi@fnal.gov ¡ 4/18/12 ¡ 10 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend