LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is NI Citadel DB unstable?

My company has used citadel, and staff members complained citadel crashed too often.

 

I was hired to replace citadel with a library that wraps around LabVIEW DB Toolkit.

 

Is it their fault or citadel's instability that caused high instances of crashes?

 

I know it's not the proper place to ask this, but I don't know where else to do.

0 Kudos
Message 1 of 9
(3,604 Views)

 

icat wrote:

                Is NI citadel DB unstable?


Upto my knowledge it won't create any problems.But there are some points to remember:

1.Do not modify, move, or delete a database file while the database is attached. Doing so results in a database corruption.

2. If you modify or delete a database file while the database is detached, you might not be able to reattach the database, and you might lose some or all of the data in the database.

3.If you move or copy a detached database, move or copy all database files.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Message 2 of 9
(3,595 Views)

According to my coworkers, citadel crashes when they try to read a lot of data from it.

0 Kudos
Message 3 of 9
(3,591 Views)

Hi icat,

             why creating duplicate posts

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 4 of 9
(3,586 Views)

@danil33 wrote:

Hi icat,

             why creating duplicate posts


Because it didn't attract any attention.

0 Kudos
Message 5 of 9
(3,577 Views)

@iCat wrote:

According to my coworkers, citadel crashes when they try to read a lot of data from it.


 

I have at least one application (7 instances running another scheduled to be created) that has been collecting and logging 24 X 7 for about 10 years now. Yes it started with an older version as is currently running as a LV 8.2.1 version.

 

The 8.2 version ran good for a couple of years and then security actions by IT started resluting in complications like data going missing and corrupted DBs etc. Since I had multiple versions running I noticed that the LV 8.2.1 versions did not suffer but the 8.2 versions all were getting smacked.

 

Turns out there was an upgrade of the SQL server between 8.2 and 8.2.1.

 

All is quiet now.

 

But as to the crashing when fetching large amoutns of data...

 

The DB has to be managed, using backups and archieves. If the DB fetch return more records than can be stored in memory, you are going to run into problems regardless of who wrote the interface (you or NI).

 

So before I would rewrite the API I suggest you first look into the nature of the crashing and investigate management possibilities.

 

The solution may end up being as simple as adding more memory on the machine serving the DB.

 

That's my 2 cents,

 

Ben

 

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 9
(3,574 Views)

@Ben wrote:

@iCat wrote:

According to my coworkers, citadel crashes when they try to read a lot of data from it.


 

I have at least one application (7 instances running another scheduled to be created) that has been collecting and logging 24 X 7 for about 10 years now. Yes it started with an older version as is currently running as a LV 8.2.1 version.

 

The 8.2 version ran good for a couple of years and then security actions by IT started resluting in complications like data going missing and corrupted DBs etc. Since I had multiple versions running I noticed that the LV 8.2.1 versions did not suffer but the 8.2 versions all were getting smacked.

 

Turns out there was an upgrade of the SQL server between 8.2 and 8.2.1.

 

All is quiet now.

 

But as to the crashing when fetching large amoutns of data...

 

The DB has to be managed, using backups and archieves. If the DB fetch return more records than can be stored in memory, you are going to run into problems regardless of who wrote the interface (you or NI).

 

So before I would rewrite the API I suggest you first look into the nature of the crashing and investigate management possibilities.

 

The solution may end up being as simple as adding more memory on the machine serving the DB.

 

That's my 2 cents,

 

Ben

 

 

 


My coworker said he fixed the crash problem, but there were other problems.

 

He consolidated two machines, and the tags were combined into one machine, too.

That increased the number of DSC tags written to citadel DB from 100 to 300.

He also had to configure citadel from the scratch.

 

After then, in HyperTrend Control, tag values aren't being fetched continuously but accumulate in memory for seconds before being shown to the client program.

It seems like a read cache to me. The client program receives tag data in big chunks instead of a small one.

 

How can he make the client program receive tag data in small chunks?

 

Did he forget to configure some security settings?

Or does he have to update citadel DB engine?

Is there anything else he needs to do?

0 Kudos
Message 7 of 9
(3,562 Views)

Well they could try querying small chunks at one time.

 

I'd start with the basics looking at CPU performance memory usage the system logs etc.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 9
(3,540 Views)

@Ben wrote:

Well they could try querying small chunks at one time.

 

I'd start with the basics looking at CPU performance memory usage the system logs etc.

 

Ben


Since he complained about big chunks of data being read unintentionally, he didn't intend to read data in big chunks.

Any more ideas?

0 Kudos
Message 9 of 9
(3,528 Views)