版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Erlang開(kāi)發(fā)電信網(wǎng)管項(xiàng)目實(shí)踐,Author: Ery Lee Date: December 2008 Email: ,Agenda,About Opengoss Project Road to Erlang The Architecture Erlang Highlights What We Got What We Lost About Erlang Syntax Thinking in Software,About Opengoss Project,Whats Opengoss?,Next Generation Network and Business Management System
2、 One uniform platform based on Linux,Erlang/OTP and ROR Different applications for WIFI, EPON and Enterpise networks,Opengoss Product Family,DMIT, Monet, Evabus, Report, RRDB, WebTopo,Platform,Linux/Unix, MySQL, Oracle, LDAP, Erlang/OTP, Ruby and Rails,Base,N/A,Opengoss Enterprise,Opengoss EPON,Open
3、goss WLAN,NMS,N/A,N/A,N/A,WIMSS,OSS,Internet,Enterprise,EPON-OSS,WIFI-OSS,Future of Opengoss,The Network Management Cloud,Road to Erlang,Pure Java Originally,First Version: Java and JEE Second Version: Java, OSGi, Eclipse, Model-Driven,Java could do everything, but,Java , JSP , JSF, Struts, Webwork,
4、 Velocity , Spring, Hibernate, iBatis, EJB, JDO, JMS, JNDI, JDBC, JAAS, JTA, RMI, IIOP, Web Services, SOAP, SOA, SDO. But, could Java do anything best?,We Had a Big Idea Once,Planned Third Version: OSGI, Component, Plugin, SOA, SDO, SCA,But we have no money and big team.,We are tired of NEW concepts
5、 and frameworks.,SDO, SCA, SOA, ESB, BPML,SOBA. Endless WS-* Documents,Into the Wild,We want to be far away.,“Hello Stranger”,Fall in love with REST, Rails and Erlang ,Why Erlang?,Simplicity Performance Concurrency Distribution Fault Tolerance,The Architecture,Architecture,Trouble Ticket 3rd party,A
6、utomations,SNMP Probe,P,Syslog Probe,P,API,P,Generic,P,Evabus,SNMPMonitor,M,Ping Monitor,M,TCPMonitor,M,OtherMonitor,M,WebPortal (WebTop),DMIT,RRDB,LDAP/MIT,RDMS,Monet,UI,Data,Biz,Collect,Design,Layers,Present Layer: AJAX, Rails Data Center Layer: MySQL, Oracle, RRDB, LDAP Business Layer: DMIT(Distr
7、ibuted MIT), Evabus(Event and Alarm Bus), Monet(Distributed network monitor) Data Collection Layer: Probe, Monitor, Mediator,DMIT,LDAP and Syncrepl,Evabus,Concurrent Event and Alarm Process Line,Monet,Massively distributed network monitor and data collection,Errd,RRDTool Erlang port,Erlang Highlight
8、s,Master/Slave and Pool,Distribution and load balance.,Master Applications,Slave Applications,Sample code: 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;,OTP Behaviors,applicati
9、on supervisor gen_server gen_event gen_fsm gen_monitor,Supervisor tree,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_u
10、nits, 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),
11、 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).
12、 -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).,Other libraries,SNMP Mochiweb Errd Eldap MySQL driver Cron,What We
13、 Got,Productivity,Small team to develop a NMS product 2 Ajax/Html, 2 Rails/DB, 1 Erlang 2 days to coding syncrepl protocol,Performance,1 HP380, 2 CPUs, 4G mem, 8 Cores 1 Oracle, 1 Mysql, 1 OpenLdap, 4 Mongrel, 1 Master, 4Slaves 5 minutes interval 10+ measure items average Collect 200 Switches, 1200
14、Aps, 8000 Interfaces,Concurrency,8000+ collect processes 80 SNMP client 80 PING 30 RRDTools 4 Erlang SNMP Client,Scalability,Massively Distributed Data Collection Scale from 1000+ to 100,000+ Aps Try to resolve IO bottleneck Try to partition data,Stability,Never stop monitor engine Failure Recover H
15、ot code loading,Distribution,Transparent distribution No effort to get master/slave,Happiness,Less code, Less noises More Happiness,Loneliness,No Girls?,What We Lost,Java,Comprehensive matured libraries and frameworks The Java community,Buzzword,No SOA, SCA, SDO, ESB finally.,About Erlang Syntax,Lov
16、e,Function Programming? Pattern match List comprehension,Hate,Ugly If String Support Records,Thinking in Software,Far away from SOA,SOAP Died. WS-* is dying. And then SOA?,OO is over evaluated,The revolution is RDBMS and C Language ,Its just Data,IT was named as Data Processing in enterprise. The data looks li
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024版法院執(zhí)行和解擔(dān)保合同范本3篇
- 2024版二手車(chē)交易車(chē)輛抵押貸款服務(wù)合同
- 2024版智能家居包清工安裝服務(wù)合同規(guī)范2篇
- 遼寧省沈陽(yáng)市城郊市重點(diǎn)聯(lián)合體2025屆高考臨考沖刺英語(yǔ)試卷含解析
- 上海市南模中學(xué)2025屆高考語(yǔ)文必刷試卷含解析
- 上海市寶山中學(xué)2025屆高三第三次測(cè)評(píng)英語(yǔ)試卷含解析
- 北京市門(mén)頭溝區(qū)市級(jí)名校2025屆高三壓軸卷數(shù)學(xué)試卷含解析
- 2025屆河北省保定市唐縣第一中學(xué)高三最后一模英語(yǔ)試題含解析
- 河北省邢臺(tái)市2025屆高三第五次模擬考試語(yǔ)文試卷含解析
- 江西省贛州市2025屆高三下學(xué)期聯(lián)合考試英語(yǔ)試題含解析
- 邢臺(tái)學(xué)院《法律英語(yǔ)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2024房屋轉(zhuǎn)讓合同協(xié)議書(shū)
- 國(guó)開(kāi)2024年《機(jī)械設(shè)計(jì)基礎(chǔ)》形考任務(wù)1-4答案
- 個(gè)人項(xiàng)目投資合作協(xié)議范本
- 弘揚(yáng)教育家精神讓教育家精神成為廣大教師的自覺(jué)追求課件
- 【MOOC】統(tǒng)計(jì)學(xué)-南京審計(jì)大學(xué) 中國(guó)大學(xué)慕課MOOC答案
- 藍(lán)天救援隊(duì)培訓(xùn)
- 國(guó)開(kāi)(北京)2024年秋《財(cái)務(wù)案例分析》形考作業(yè)答案
- 當(dāng)水墨邂逅油彩(北京師范大學(xué))知到智慧樹(shù)章節(jié)答案
- DB22T 5133-2022 物業(yè)服務(wù)標(biāo)準(zhǔn)
- 2023-2024學(xué)年廣東省深圳市福田區(qū)七年級(jí)(上)期末歷史試卷
評(píng)論
0/150
提交評(píng)論