Erlang开发电信网管项目实践.ppt_第1页
Erlang开发电信网管项目实践.ppt_第2页
Erlang开发电信网管项目实践.ppt_第3页
Erlang开发电信网管项目实践.ppt_第4页
Erlang开发电信网管项目实践.ppt_第5页
已阅读5页,还剩53页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Erlang开发电信网管项目实践,Author:EryLeeDate:December2008Email:ery.lee,Agenda,AboutOpengossProjectRoadtoErlangTheArchitectureErlangHighlightsWhatWeGotWhatWeLostAboutErlangSyntaxThinkinginSoftware,AboutOpengossProject,WhatsOpengoss?,NextGenerationNetworkandBusinessManagementSystemOneuniformplatformbasedonLinux,Erlang/OTPandRORDifferentapplicationsforWIFI,EPONandEnterpisenetworks,OpengossProductFamily,DMIT,Monet,Evabus,Report,RRDB,WebTopo,Platform,Linux/Unix,MySQL,Oracle,LDAP,Erlang/OTP,RubyandRails,Base,N/A,OpengossEnterprise,OpengossEPON,OpengossWLAN,NMS,N/A,N/A,N/A,WIMSS,OSS,Internet,Enterprise,EPON-OSS,WIFI-OSS,FutureofOpengoss,TheNetworkManagementCloud,RoadtoErlang,PureJavaOriginally,FirstVersion:JavaandJEESecondVersion:Java,OSGi,Eclipse,Model-Driven,Javacoulddoeverything,but,Java,JSP,JSF,Struts,Webwork,Velocity,Spring,Hibernate,iBatis,EJB,JDO,JMS,JNDI,JDBC,JAAS,JTA,RMI,IIOP,WebServices,SOAP,SOA,SDO.But,couldJavadoanythingbest?,WeHadaBigIdeaOnce,PlannedThirdVersion:OSGI,Component,Plugin,SOA,SDO,SCA,Butwehavenomoneyandbigteam.,WearetiredofNEWconceptsandframeworks.,SDO,SCA,SOA,ESB,BPML,SOBA.EndlessWS-*Documents,IntotheWild,Wewanttobefaraway.,“HelloStranger”,FallinlovewithREST,RailsandErlang,WhyErlang?,SimplicityPerformanceConcurrencyDistributionFaultTolerance,TheArchitecture,Architecture,TroubleTicket3rdparty,Automations,SNMPProbe,P,SyslogProbe,P,API,P,Generic,P,Evabus,SNMPMonitor,M,PingMonitor,M,TCPMonitor,M,OtherMonitor,M,WebPortal(WebTop),DMIT,RRDB,LDAP/MIT,RDMS,Monet,UI,Data,Biz,Collect,Design,Layers,PresentLayer:AJAX,RailsDataCenterLayer:MySQL,Oracle,RRDB,LDAPBusinessLayer:DMIT(DistributedMIT),Evabus(EventandAlarmBus),Monet(Distributednetworkmonitor)DataCollectionLayer:Probe,Monitor,Mediator,DMIT,LDAPandSyncrepl,Evabus,ConcurrentEventandAlarmProcessLine,Monet,Massivelydistributednetworkmonitoranddatacollection,Errd,RRDToolErlangport,ErlangHighlights,Master/SlaveandPool,Distributionandloadbalance.,MasterApplications,SlaveApplications,Samplecode:pool,handle_cast(add,Dn,Attrs,State)-Node=pool:get_node(),rpc:call(Node,monet_agent,monitor,Dn,Attrs),ets:insert(mon_entry_table,Dn,Node),noreply,State;,OTPBehaviors,applicationsupervisorgen_servergen_eventgen_fsmgen_monitor,Supervisortree,gen_server:opengoss_mysql,-module(opengoss_mysql).-behaviour(gen_server).-export(insert/2,select/1,select/2,select/3,update/2,update/3,delete/2).,gen_server:opengoss_mysql(cont),opengoss_mysql:select(wifi_mobile_units,id,mac,ap_dn,Dn)opengoss_mysql:update(wifi_mobile_units,last_seen,datetime,Now,and,ap_Dn,Dn,in,id,UpdatedIds)opengoss_mysql:delete(wifi_mobile_units,and,ap_Dn,Dn,in,id,DeletedIds);,gen_event:mit_event_h,handle_event(present,Dn,Entry,State)-handle_add_entry(Dn,Entry),ok,State;handle_event(add,Dn,Entry,State)-handle_add_entry(Dn,Entry),ok,State;handle_event(modify,Dn,Entry,State)-handle_modify_entry(Dn,Entry),ok,State;handle_event(delete,Dn,_Entry,State)-handle_delete_entry(Dn),ok,State;,gen_fsm:eldap_syncrepl,-module(eldap_syncrepl).-behaviour(gen_fsm).-include(eldap.hrl).-include(ELDAPv3.hrl).-export(init/1,connecting/2,wait_bind_response/2,wait_syncrepl_response/2,handle_event/3,handle_sync_event/4,handle_info/3,terminate/3,code_change/4,close/0).,Otherlibraries,SNMPMochiwebErrdEldapMySQLdriverCron,WhatWeGot,Productivity,SmallteamtodevelopaNMSproduct2Ajax/Html,2Rails/DB,1Erlang2daystocodingsyncreplprotocol,Performance,1HP380,2CPUs,4Gmem,8Cores1Oracle,1Mysql,1OpenLdap,4Mongrel,1Master,4Slaves5minutesinterval10+measureitemsaverageCollect200Switches,1200Aps,8000Interfaces,Concurrency,8000+collectprocesses80SNMPclient80PING30RRDTools4ErlangSNMPClient,Scalability,MassivelyDistributedDataCollectionScalefrom1000+to100,000+ApsTrytoresolveIObottleneckTrytopartitiondata,Stability,NeverstopmonitorengineFailureRecoverHotcodeloading,Distribution,TransparentdistributionNoefforttogetmaster/slave,Happiness,Lesscode,LessnoisesMoreHappiness,Loneliness,NoGirls?,WhatWeLost,Java,ComprehensivematuredlibrariesandframeworksTheJavacommunity,Buzzword,NoSOA,SCA,SDO,ESBfinally.,AboutErlangSyntax,Love,FunctionProgramming?PatternmatchListcomprehension,Hate,UglyIfStringSupportRecords,ThinkinginSoftware,FarawayfromSOA,SOAPDied.WS-*isdying.AndthenSOA?,OOisoverevaluated,TherevolutionisRDBMSandCLanguage,ItsjustData,ITwasnamedasDataProcessinginenterprise.T

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论