SKY-IMS Software Architecture
SKY-IMS Software Architecture
Stockholm
December, 2008
2010-10-11 2
SKY-IMS
• Integrated Meteorological System.
• Designed for 24 x 7 unattended operation.
• Fully compliant with ICAO & WMO regulations and
recommendations, open for adjustment with
national practices.
• Complex multipurpose software:
– Airport Weather Observation Systems
– Synoptic and Climatological monitoring
– Gamma radiation monitoring
– Marine meteorology
2010-10-11 4
Latest Technologies
Field proven sensors:
• NGDL750 Automatic Weather Station with sensors
• Intel based PC workstation running SKY-IMS software.
• Multiplatform: Microsoft Windows ® or Linux ®.
• Industry proven technologies: Java, XML, relational
databases (PostgreSQL).
• Data processing and archiving based on Hibernate and
SQL.
• Database based system configuration.
• Localization to national languages possible (2 languages
already available).
2010-10-11 5
Heartbeat
2010-10-11 9
Menu
Client UTC
Client local time
time
2010-10-11 13
SKY-IMS Processes
1. HA cluster process – openAIS
2. Database writer – writer
3. Web interface with application – Tomcat6
2010-10-11 17
FireFox Browser
FireFox browser is not IMS Software !
SKY-IMS Database
• PostgreSQL 8.4 database server running on main server
• Database physically located in /var/lib/pgsql directory
(which is linked to /dev/drbd0 directory)
• Database running as postgresql service managed by
pacemaker.
• SQL Server available at TCP port 5432.
• Database available as “meteoska” at main server.
• Access to database through SKY-IMS Web Interface:
– Graphical Data
– Archives
2010-10-11 24
SKY-IMS Database
SKY-IMS Database stores:
• measured, manually entered and computed
data
• WMO codes created locally (SYNOP, METAR,
CLIMAT)
• Messages exchanged (sent, received) through
exchange networks (GTS, AFTN)
• User accounts
2010-10-11 25
SKY-IMS Database
IMS Database does not store:
• record of raw communication through
communication channels;
• Current data received from other stations for
preview;
• log files.
2010-10-11 26
# /usr/bin/pg_dump -h localhost
–p 5432 -U ims -F c -f
ims.backup ims –v
2010-10-11 27
Login
Client
Server
Roles
• Recommendation: each user has its own
personal account
• Each user has assigned some roles:
– operator
– atc (not used)
– admin
• User not logged in:
– read access to current and historical data
– no right to change anything
2010-10-11 31
Roles
User with role operator:
• Rights as not logged user
• Right to create WMO Codes:
– SYNOP
– METAR
• Right to change his password
2010-10-11 32
Roles
User with role admin:
1. Rights as not logged user
2. Right to change IMS settings:
– Switch on/off channels
– Change system parameters
3. Right to add users, assign roles.
Passwords
1. Usernames and passwords are stored in SKY-
IMS database.
2. Empty database = nobody can log in.
3. Passwords are encrypted. Admin\user can
change password, but cannot decrypt
password.
2010-10-11 34
Software Maintenance
• Maintenance of Linux operating system
– Automatic updates
– Antivirus protection
• Maintenance of IMS software:
– Preventive checks
– Troubleshooting
– Updating
2010-10-11 36
Software Maintenance
Checking of Alerts:
• If some unusual ERROR/WARNING is not reported by the
system
MAIN Server
1. common IP address is mapped to MAIN server as eth0:0:
skyims1 : # ifconfig
eth0 Link encap:Ethernet HWaddr 00:D0:C9:9D:1C:D7
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2d0:c9ff:fe9d:1cd7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9363389 errors:0 dropped:0 overruns:0 frame:0
TX packets:10117004 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3089747611 (2946.6 Mb) TX bytes:3472538748 (3311.6 Mb)
Interrupt:177
eth0:0 Link encap:Ethernet HWaddr 00:D0:C9:9D:1C:D7
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:177
DRBD
Distributed Replicable Block device – mirroring disk
partitions over LAN connection
Configuration: /etc/drbd.conf
Check current state: cat /proc/drbd
DRBD service: /etc/init.d/drbd
NOTE:
If there is problem with LAN or DRBD cannot get
information about state of devices during boot
process, administrator have to put ‘yes’ to start up
console
2010-10-11 43
Pacemaker log
Important keywords:
• heartbeat – process, when a node in cluster announces its
correct operation.
• heartbeat link – serial link or ethernet card, over which
heartbeat is performed. For increased reliability, 2 links on
different media are recommended.
• resource – a resource (service or IP address) to be shared
among nodes of cluster.
• split brain – situation, when more than one node owns
resources (usually when heartbeat links are broken, or
keepalive timeout is too small).
• node status – active or dead.
2010-10-11 44
Updating
• Updates are provided usually SMMI AB
either as .rpm files or .tgz files with
instructions how to install the update.
• SMMI AB always provides the step-by-step
installation instructions (although they are
usually very short: “run the command “tar –C
/ -xvzf SKYIMS_XXX.tgz”).
• For running of the update files the user must
be logged in as user root